Open
Conversation
added 30 commits
May 7, 2015 14:51
…igrate function to elements for migrating them from one host to a new host. (Not finished)
…ded an unaccessary api call
added 6 commits
June 1, 2015 10:18
…t resources for the getHostValue function
backend/tomato/api/elements.py
Outdated
Contributor
Author
There was a problem hiding this comment.
You do not need this API method. Migrate is defined as an action so you can call element_action(ID, "migrate", ...)
Contributor
Author
There was a problem hiding this comment.
Regular users should not be allowed to migrate elements, so there should be an admin check
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.
realsplatscream
approved these changes
Jan 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ongoing work for dynamic hostmanager deployment and component migration.