Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
f0864d40
Commit
f0864d40
authored
8 years ago
by
Michael Roytman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up
parent
d6409eae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
util/balancecontainers.py
+0
-20
No files found.
util/balancecontainers.py
View file @
f0864d40
...
...
@@ -5,7 +5,6 @@ import itertools
import
sys
class
ContainerBalancer
:
def
__init__
(
self
):
self
.
load_repo_path
()
...
...
@@ -62,14 +61,6 @@ if __name__ == '__main__':
items
=
line
.
split
()
containers
.
extend
(
items
)
# containers = {"discovery":6, "go-agent": 3, "xqwatcher": 3, "analytics_api": 1, "edxapp": 28,
# "insights": 4, "credentials":8, "forum": 7, "nginx":1, "xqueue":2}
# containers = ["discovery", "go-agent", "xqwatcher", "analytics_api", "edxapp", "insights", "credentials", "forum", "nginx", "xqueue"]
# containers = ["discovery", "go-agent", "xqwatcher", "analytics_api", "insights", "credentials", "forum", "nginx", "xqueue"]
# [discovery go-agent xqwatcher analytics_api edxapp insights credentials forum nginx xqueue]
shards
=
balancer
.
pack_containers
(
containers
)
for
shard
in
shards
:
...
...
@@ -79,13 +70,3 @@ if __name__ == '__main__':
line
=
middle
.
join
(
conts
)
print
line
# for shard in shards:
# for container in shard["containers"]:
# print container[0],
# print ""
# containers.sort(reverse=True)
# a={"discovery":6, "go-agent": 3, "xqwatcher": 3, "analytics_api": 1, "edxapp": 28, "insights": 4, "credentials":8, "forum":"nginx":1, "xqueue":2, "trusty-common":5, "precise-common":4}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment