Skip to content

Conversation

@dswd
Copy link
Contributor

@dswd dswd commented Jun 3, 2015

Ongoing work for dynamic hostmanager deployment and component migration.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do not need this API method. Migrate is defined as an action so you can call element_action(ID, "migrate", ...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regular users should not be allowed to migrate elements, so there should be an admin check

swuest added 8 commits June 3, 2015 16:33
- removed unnecessary api call for migration
- changed action_migrate to try_migrate
	- there is no host parameter anymore
	- the element searches for a new host and migrates if necessary
- changed checkForHostDeactivation
	- now it checks every 5 minutes if the system can handle the load of a host
	- it sets a fixedPref which affects the value of the host

- renamed host_management to dynamic_allocation
	- it checks periodic if the system can allocate or detache hosts
…cation and deactivation to config.py

Fixed some bugs for different elements by updating the try_migration function.

Made some changes and name changes in host.py:
* changed checkHostDeactivation to loadInfluencer
* updated load influencer
* updated getBestHost
* changed getHostValue to getHostScore
* updated getHostScore
* changed hostReallocation to migrator
* added the migrator as an periodic function beeing activated every 30 min.
@dswd dswd added this to the Testbed on demand milestone Oct 15, 2015
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

Successfully merging this pull request may close these issues.

1 participant