Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reload plugin list in add node #489

Open
cancan101 opened this issue Jan 14, 2015 · 4 comments
Open

reload plugin list in add node #489

cancan101 opened this issue Jan 14, 2015 · 4 comments

Comments

@cancan101
Copy link

I changed my list of cluster plugins in the config file but running add node still uses the list from when cluster was started. Same applies to changing Ami.

Would be good to have flag to reload setting in add node.

@cancan101
Copy link
Author

Partially addressed in #499

@vohtaski
Copy link

vohtaski commented Apr 1, 2015

I guess we have a similar issue.
Had the following settings for plugin in config:

master_slots = 2
node_slots = 2

Now changed them to

master_slots = 0
node_slots = 2

When we do starcluster restart or starcluster addnode, it takes old data.
However, when we run starcluster runplugin my_plugin, it takes correct data.

Looking at the code,
first script is using this code and does not take numbers from config
https://github.com/jtriley/StarCluster/blob/develop/starcluster/cluster.py#L1690
second script take numbers from config here:
https://github.com/jtriley/StarCluster/blob/develop/starcluster/cluster.py#L379

question, where does it store the previous config that was used for starting the cluster?

@cancan101
Copy link
Author

I believe these settings are stored in the cluster user data. This is where some of that is loaded:

def _get_cluster_userdata(self, aliases):

@vohtaski
Copy link

vohtaski commented Apr 1, 2015

yep, thanks, I found it after. In the end we decided to kill the cluster and start again with new settings, maybe it's even better :) For now I have a quick fix to read config file from the plugin.

but I'm still +1, think it is useful for plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants