A Tarantool Cartridge role file has a function init.
I want to get my custom options from the instance.yml file. But the opts variable doesn't have it.
How I can do it?
A Tarantool Cartridge role file has a function init.
I want to get my custom options from the instance.yml file. But the opts variable doesn't have it.
How I can do it?
Copyright © 2021 Jogjafile Inc.
Cartridge has a built-in module called "argparse". It parses a few sources of configuration and combines them together:
Cartridge uses this module to get various pieces of configuration like the port numbers or maximum allowed memory usage. But it doesn't stop you from putting anything you like in those files, as long as it doesn't clash with built-in parameters.
Here's what you chould have in your init():