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
base: master
Are you sure you want to change the base?
Conversation
…igrate function to elements for migrating them from one host to a new host. (Not finished)
…ded an unaccessary api call
…t resources for the getHostValue function
@@ -299,6 +299,28 @@ def element_usage(id): #@ReservedAssignment | |||
el = _getElement(id) | |||
return el.totalUsage.info() | |||
|
|||
def element_migrate(id,host): #@ReservedAssignment |
There was a problem hiding this comment.
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", ...)
There was a problem hiding this comment.
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
- 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.
Ongoing work for dynamic hostmanager deployment and component migration.