Open sparkvilla opened 6 years ago
So it seems the start command does not listen for config file update
This is so by design. The [cluster/*]
sections in configuration files are cluster templates; elasticluster start
instanciates a template into an actual cluster, and the actual cluster configuration is saved into the "storage directory" (~/.elasticluster/storage/
by default).
There is no ElastiCluster command to update an actual cluster config from the template, but it is not clear how such an update would work in many cases. Suppose you changed the flavor for the "data" nodes: what should ElastiCluster do? create only new nodes with the new flavor? rebuild all existing nodes with the new flavor? And what if you removed a node type? I am not sure I can see a way to "do the right thing" that's consistent with all use cases; suggestions are very welcome!
do not point the user in the right direction, i.e. by running
elasticluster stop gbids
first, and then againelasticluster start gbids
, elasticluster would pick the updated config file.
Indeed, error reporting is still very poor. I'll update the issue title to reflect this, which is the only direction we can move forward with the current design.
I see the point . I think updating the error message to point the user in the right direction would be of great help. Thanks.
This is my config file:
I defined one node called
data
and the commandelasticluster start gbids
produces the expected result.I then update the config file to include a new
registry
node. Here the relevant part of the conf file:and I run again:
elasticluster start gbids
I get this error:
So it seems the
start
command does not listen for config file update and/or do not point the user in the right direction, i.e. by runningelasticluster stop gbids
first, and then againelasticluster start gbids
elasticluster would pick the updated config file.