Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cse138-assignment-4-test-suite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander William Aghili
cse138-assignment-4-test-suite
Compare revisions
main to main
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
awaghili/cse138-assignment-4-test-suite
Select target project
No results found
main
Select Git revision
Swap
Target
evkjones/cse138-assignment-4-test-suite
Select target project
dakshah/cse138-assignment-4-test-suite
ketompki/cse138-assignment-4-test-suite
evkjones/cse138-assignment-4-test-suite
ranadkar/cse138-assignment-4-test-suite
ctknab/cse138-assignment-4-test-suite
awaghili/cse138-assignment-4-test-suite
6 results
main
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (5)
made external ports fully dynamic
· 97106922
zphrs
authored
1 month ago
97106922
test suite fix
· 9a10e833
zphrs
authored
1 month ago
9a10e833
made basic_proxy tests more reasonable
· d933f968
zphrs
authored
1 month ago
d933f968
made basic_proxy_one_client more reasonable
· 82d8b14c
zphrs
authored
1 month ago
82d8b14c
Further fixed basic proxy
· 2ac06965
zphrs
authored
1 month ago
2ac06965
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/bench/benchmark.py
+2
-2
2 additions, 2 deletions
tests/bench/benchmark.py
tests/proxy/basic_proxy.py
+1
-1
1 addition, 1 deletion
tests/proxy/basic_proxy.py
utils/containers.py
+9
-2
9 additions, 2 deletions
utils/containers.py
with
12 additions
and
5 deletions
tests/bench/benchmark.py
View file @
2ac06965
...
...
@@ -7,8 +7,8 @@ import time
import
asyncio
import
matplotlib.pyplot
as
plt
NUM_SHARDS
=
16
NUM_KEYS
=
5
000
NUM_SHARDS
=
20
NUM_KEYS
=
1
000
NUM_NODES
=
8
def
benchmark_add_shard
(
conductor
:
ClusterConductor
,
dir
,
log
:
Logger
):
...
...
This diff is collapsed.
Click to expand it.
tests/proxy/basic_proxy.py
View file @
2ac06965
...
...
@@ -50,7 +50,7 @@ def basic_proxy_many_clients(conductor: ClusterConductor, dir, log: Logger):
node_to_put
=
0
base_key
=
"
key
"
for
i
in
range
(
0
,
100
00
):
for
i
in
range
(
0
,
3
00
):
c1
=
KVSMultiClient
(
fx
.
clients
,
"
client
"
,
log
)
r
=
c1
.
put
(
node_to_put
,
f
"
{
base_key
}{
i
}
"
,
f
"
{
i
}
"
,
timeout
=
10
)
assert
r
.
ok
,
f
"
expected ok for new key, got
{
r
.
status_code
}
"
...
...
This diff is collapsed.
Click to expand it.
utils/containers.py
View file @
2ac06965
...
...
@@ -75,7 +75,7 @@ class ClusterConductor:
# naming patterns
self
.
group_ctr_prefix
=
f
"
kvs_
{
group_id
}
_
{
thread_id
}
_node
"
self
.
group_net_prefix
=
f
"
kvs_
{
group_id
}
_
{
group
_id
}
_net
"
self
.
group_net_prefix
=
f
"
kvs_
{
group_id
}
_
{
thread
_id
}
_net
"
# base network
self
.
base_net_name
=
f
"
{
self
.
group_net_prefix
}
_base
"
...
...
@@ -271,7 +271,7 @@ class ClusterConductor:
"
--env
"
,
f
"
NODE_IDENTIFIER=
{
i
}
"
,
"
-p
"
,
f
"
{
external_port
}
:
{
port
}
"
,
f
"
{
port
}
"
,
self
.
base_image
,
]
if
CONTAINER_ENGINE
==
"
podman
"
:
...
...
@@ -283,6 +283,13 @@ class ClusterConductor:
log
=
self
.
log
,
)
res
=
run_cmd_bg
(
[
CONTAINER_ENGINE
,
"
port
"
,
node_name
,
str
(
port
)],
verbose
=
True
,
log
=
self
.
log
,
)
external_port
=
int
(
res
.
stdout
.
rsplit
(
"
:
"
,
1
)[
1
])
# attach container to base network
self
.
log
(
f
"
attaching container
{
node_name
}
to base network
"
)
run_cmd_bg
(
...
...
This diff is collapsed.
Click to expand it.