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

Describe how to scale up and down #19

Closed
grtjn opened this issue Jan 20, 2015 · 1 comment
Closed

Describe how to scale up and down #19

grtjn opened this issue Jan 20, 2015 · 1 comment
Assignees
Milestone

Comments

@grtjn
Copy link
Owner

grtjn commented Jan 20, 2015

Bit convoluted. Scaling up should be:

  • increase nr-hosts in project.properties
  • vagrant up --no-provision
  • vagrant provision

Noticed some issues though extra hosts not properly being added to cluster. Haven't tried to reproduce, feedback welcome.

Scaling down requires different approach:

  • drop host from cluster using admin ui
  • then to really get rid of node: vagrant destroy on last node (always last)
  • decrease nr-hosts in project.properties

Add this to the README somewhere.. (and more feedback welcome!)

@grtjn grtjn modified the milestone: 0.0.2 Aug 25, 2015
@grtjn grtjn self-assigned this Aug 25, 2015
@grtjn grtjn removed the help wanted label Sep 2, 2015
@grtjn
Copy link
Owner Author

grtjn commented Sep 2, 2015

Scaling up:

  • vi project.properties, increase nr_hosts
  • vagrant status, make note of names of not-created vms
  • vagrant up --no-provision {names of 'not-created' vms}
  • vagrant host-manager (will run across all vms and host to update hosts tables with new vms)
  • vagrant provision {names of 'not-created' vms}

Scaling down:

  • vagrant status, make note of last vm name
  • go to admin UI on last vm (http://lastvmname:8001/)
  • click on host details of that host, select Leave
  • vagrant destroy {lastvmname}
  • vi project.properties, decrease nr_hosts setting

Note: you can scale down multiple hosts, but make sure remove vms from last to first. VM names are calculated by incrementing from 1 to nr_hosts.

@grtjn grtjn closed this as completed in 743296d Sep 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant