Ivan Vilata-i-Balaguer
b4b4071436
Use meaningful timeouts and constants in network stress test
2016-05-18 12:55:26 +02:00
Ivan Vilata-i-Balaguer
2a24ce94a3
Constant for mailbox message delay in network stress test
2016-05-18 12:40:13 +02:00
Ivan Vilata-i-Balaguer
d1c6d4ad9c
Rearrange network stress test code for clarity
...
No actual changes to code.
2016-05-18 11:23:21 +02:00
Ivan Vilata-i-Balaguer
8c8fbd1947
Comment out some debug prints in mailbox network stress test
2016-05-18 10:47:03 +02:00
Ivan Vilata-i-Balaguer
cb14a7961b
Show progress in mailbox network stress test
2016-05-18 10:41:47 +02:00
Ivan Vilata-i-Balaguer
1a496e0963
Wait for mailbox send before stopping peer in network stress test
...
Otherwise the peer may be already stopped before sending.
2016-05-18 10:39:07 +02:00
Ivan Vilata-i-Balaguer
ea35ace8db
Report failed mailbox messages in network stress test
2016-05-18 10:19:14 +02:00
Ivan Vilata-i-Balaguer
1a5960124c
Wait a little more for node bootstrap in network stress test
2016-05-18 10:16:36 +02:00
Ivan Vilata-i-Balaguer
976d9cb333
Implement sending and receiving mailbox messages in network stress test
...
Not working thoug, lots of "Message not broadcasted because we have stopped the handler already.".
2016-05-17 14:06:07 +02:00
Ivan Vilata-i-Balaguer
14374fed6d
Do not send direct message to oneself in network stress test
2016-05-17 11:27:46 +02:00
Ivan Vilata-i-Balaguer
bad681d8e8
Remind not to send direct message to oneself in network stress test
2016-05-17 10:33:02 +02:00
Ivan Vilata-i-Balaguer
1f6ea10bd6
Check for timeout when starting and stopping nodes in mailbox stress test
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
554652c6fe
Factor out environment integer parsing in network stress test
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
d0a54a476c
Get number of mailbox messages from environment, create properly sized latch
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
3ab270f5c5
Skeleton of mailbox send stress test
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
c27aabda2e
Some comments on test progress indicators
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
123928a7a2
Remove unused function for test progress reporting
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
16e2e03a98
Only use numbers in test progress reporting, simpler and cleaner
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
7f1204e09e
Simplify test progress reporting, force printing on last entry
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
53019a88f2
Split latch count down and progress bar printing methods
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
dfaf6302b9
Throttle progress printing in network stress test
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
e7fd9d9ed7
Shorten progress bar when it exceeds terminal width
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
3a9b2dd932
Show progress of direct sent messages in network stress test
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
7b0834e3b8
Change format of progress report in network stress test
...
Printing on stdout with a different format makes progress bars easier to filter out.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
0e9bcff2c8
Better progress reporting in network stress test shutdown
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
663cd82432
Show progress of network stress test operations
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
ac3dbe9160
Wait longer for direct receive in network stress test
...
Using the new executor made thing a little slower.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
84035ae658
Stop seed node after peer nodes in network stress test
...
Probably not really needed.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
2881a3dd63
Indicate when nodes are being stopped in the network stress test
...
It may help distinguish errors derived from forcibly stopping nodes (e.g. after a timeout).
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
da5b59b06b
Set a `UserThread
` executor in network stress test
...
That makes it more stable against ``ConcurrentModificationException`` (see #443 ), but may need to allow more open files for the process.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
fa461f23e8
Wait 2 seconds per peer for preliminary data and bootstrap
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
c4bb180dbf
Show exceptions after network stress test run as main class
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
0fc8a1b5c0
Add main function to run an individual network stress test
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
4b75235f33
Split network stress tests in direct and mailbox
...
Now they can be run independently.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
c67f724e0f
Wait for preliminary data and bootstrap while setting up network stress tests
...
This should be common for the different tests.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
ad6c0599f6
Wait for preliminary data and bootstrap to setup of network stress tests
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
444f9d90b8
Example restarting of peer in network stress test
...
This mechanism will be used for the mailbox send test.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
4a264dbdc7
Make use localhost a field in network stress test
...
It will help with the recreation of peers for mailbox send test.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
39c9512673
Rename method to get seed node address for network stress test
...
This one better conveys the intention of providing a new address each time it is called.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
5a4886ffa4
Keep track of peer ports and seed nodes repo
...
It will be useful when recreating nodes for mailbox send test.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
7351363830
Check optional value in keyring getter, hint nullable
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
ab4491d956
Draft and describe loop for mailbox send test
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
f74d88cb33
Factor out peer node creation in network stress test
...
This will be useful later when stopping and restarting peer nodes in mailbox send test. I added a getter to ``P2PService`` to get its public keyring.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
9ad4f371b2
Split long line
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
0599c820be
Show min/max/avg send send delay in network stress test
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
6ab5daf1c1
Report ratio to max receive timeout in network stress test
...
My computer is able to handle 50 messages per each of 20 peers with a delay ratio around 3. With 100 messages or 50 peers, receiving times out even if we wait 10 times the ideal max timeout.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
d9f00e6627
Wait more for message reception in network stress test
...
If we wait for too little there are lots of connection refused errors when stopping nodes.
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
9e61f1f3db
Some comments on peer creation in network stress test
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
acb31003ed
Set maximum connections to seed node in network stress test
2016-05-17 09:13:28 +02:00
Ivan Vilata-i-Balaguer
a9efa4ec15
Print network stress test steps to help locating the source of warnings
2016-05-17 09:13:28 +02:00