Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
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
savoirfairelinux
opendht
Commits
4f53e10e
Unverified
Commit
4f53e10e
authored
8 years ago
by
Simon Désaulniers
Browse files
Options
Downloads
Patches
Plain Diff
benchmark: enable traffic_plot for "delete" test
parent
a608ad3c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/tools/dht/tests.py
+11
-0
11 additions, 0 deletions
python/tools/dht/tests.py
with
11 additions
and
0 deletions
python/tools/dht/tests.py
+
11
−
0
View file @
4f53e10e
...
@@ -456,6 +456,12 @@ class PersistenceTest(DhtFeatureTest):
...
@@ -456,6 +456,12 @@ class PersistenceTest(DhtFeatureTest):
It uses Dht shutdown call from the API to gracefuly finish the nodes one
It uses Dht shutdown call from the API to gracefuly finish the nodes one
after the other.
after the other.
"""
"""
wb
=
self
.
_workbench
if
self
.
_traffic_plot
:
traffic_plot_thread
=
threading
.
Thread
(
target
=
display_traffic_plot
,
args
=
tuple
([
'
br
'
+
wb
.
ifname
]))
traffic_plot_thread
.
daemon
=
True
traffic_plot_thread
.
start
()
bootstrap
=
self
.
bootstrap
bootstrap
=
self
.
bootstrap
ops_count
=
[]
ops_count
=
[]
...
@@ -513,6 +519,10 @@ class PersistenceTest(DhtFeatureTest):
...
@@ -513,6 +519,10 @@ class PersistenceTest(DhtFeatureTest):
else
:
else
:
DhtNetwork
.
log
(
"
[GET]: either couldn
'
t fetch values or nodes hosting values...
"
)
DhtNetwork
.
log
(
"
[GET]: either couldn
'
t fetch values or nodes hosting values...
"
)
if
traffic_plot_thread
:
print
(
"
Traffic plot running for ever. Ctrl-c for stopping it.
"
)
traffic_plot_thread
.
join
()
@reset_before_test
@reset_before_test
def
_replaceClusterTest
(
self
):
def
_replaceClusterTest
(
self
):
"""
"""
...
@@ -565,6 +575,7 @@ class PersistenceTest(DhtFeatureTest):
...
@@ -565,6 +575,7 @@ class PersistenceTest(DhtFeatureTest):
hashes
=
[]
hashes
=
[]
# Generating considerable amount of values of size 1KB.
# Generating considerable amount of values of size 1KB.
# TODO: Utiliser fonction _initialSetOfValues.
VALUE_SIZE
=
1024
VALUE_SIZE
=
1024
NUM_VALUES
=
self
.
_num_values
if
self
.
_num_values
else
50
NUM_VALUES
=
self
.
_num_values
if
self
.
_num_values
else
50
values
=
[
Value
(
random_str_val
(
size
=
VALUE_SIZE
).
encode
())
for
_
in
range
(
NUM_VALUES
)]
values
=
[
Value
(
random_str_val
(
size
=
VALUE_SIZE
).
encode
())
for
_
in
range
(
NUM_VALUES
)]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment