Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add new balancer * Add Balancer config * Added threshold values to balancer config * WIP * Changed metrics * WIP * WIP * General logic of generateTasks done * More additions * Refactoring * Refactoring + getShardCurrentState * Implement getHostStatus * Update key Ranges info * Implement getKeyRange * Refactoring * WIP on getStatsByKeyRange * Implemented getStatsByKeyRange * Implemented getTasks * Added TaskGroup type * Initial impl of executeTasks * Small refactoring * unificationType -> joinType * Added TasksService to proto-specs * Added TasksService to proto servers * Added internal tasks-related types, implemented Task proto services * Added Task-related methods to QDB * Declared Task-related methods to QDBs * Add Tasks to-from Db methods * Implemented TaskMgr methods * Implemented Task methods in MemQDB * Implemented Task methods in EtcdQDB * Implemented QDB-related methods in balancer * Re-written balancer to use internal Task types * Account for joinType in executeTasks * Add spqr-balancer app * Fixies * Fixed QDBs GetTaskGroup * Some logging alterations * Small interface check * Some renaming & refactoring * More shit * Fixed getting pg_is_in_recovery * Create pg_comment_stats extension on shards * Fix getHostStatus & add logging * Fixes * More small fixes * Fixes transferring from last key range * Fixed transfers of JoinNone type * Small fixes * Add balancer Makefile targets * Fix shard image's setup * Add balancer feature test * Fix working with mixed-case table names * fix boundaries in provider * Added more tests for balancer * Fixed bound selection in balancer * Added CPU test to balancer * Reduced balancer config * Added timeout to balancer config * Changed timeout in balancer configs for feature tests * Lint fix * Fix getting detailed cpu stats * Refactoring in NewBalancer * Ignore unreachable hosts rather then fail * Refactor MaxRelative & getCriterion funcs * Optimized getStatsByKeyRange by adding another index * Fix comment * Simpler-to-read formulas * Fixed fitsOnShard logic * Changed getShardToMoveTo signature to return bool instead of error * Oh no, my cum count... * Fix fitsOnShard logic * Simplify getAdjacentShards * Removed incorrect condition * use TaskGroup.Tasks as stack * Remove redundant comment * Fix moving to non-adjacent shard & more sophisticated test * Fix spqr-balancer description * Add TODO * Fixed balancer test's name * Fixed balancer feature test
- Loading branch information