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

Dynamic resource allocation #975

Open
wants to merge 135 commits into
base: master
Choose a base branch
from

Conversation

dswd
Copy link
Contributor

@dswd dswd commented Jun 3, 2015

Ongoing work for dynamic hostmanager deployment and component migration.

@@ -299,6 +299,28 @@ def element_usage(id): #@ReservedAssignment
el = _getElement(id)
return el.totalUsage.info()

def element_migrate(id,host): #@ReservedAssignment
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.

None yet

1 participant