Commit Graph

311 Commits

Author SHA1 Message Date
Alexey Lavrenuke
acdecb67a8 save stat to cause_second 2016-02-18 17:27:33 +03:00
Alexey Lavrenuke
233698bde5 fix avg time criterium 2016-02-18 16:54:48 +03:00
Alexey Lavrenuke
4ba10b7689 show rps 2016-02-18 15:05:48 +03:00
Alexey Lavrenuke
4aee167a4c count instances 2016-02-18 14:50:42 +03:00
Alexey Lavrenuke
d9acb461f8 bfg works with http gun 2016-02-17 21:24:50 +03:00
Alexey Lavrenuke
c9952f3638 refactored bfg 2016-02-17 20:22:04 +03:00
Alexey Lavrenuke
8b7989c764 yandextank and yandextank.plugins are namespace packages from now on 2016-02-17 18:27:17 +03:00
Alexey Lavrenuke
3cc0e24f23 remove some plugins from default config 2016-02-17 17:19:54 +03:00
Alexey Lavrenuke
f40caac0e6 fix default config 2016-02-17 17:16:22 +03:00
Alexey Lavrenuke
c4de7ee43a remove bfg plugin 2016-02-17 14:45:04 +03:00
Alexey Lavrenuke
0cf09f1d5c remove all external-only plugins and unsupported functionality (cumulative autostops) 2016-02-17 14:40:01 +03:00
Alexey Lavrenuke
1921b5d316 count instances 2016-02-16 20:47:49 +03:00
Alexey Lavrenuke
59316c4c25 change error code 2016-02-16 18:33:32 +03:00
Alexey Lavrenuke
01bae462be data aggregation works well in JMeter 2016-02-16 18:18:06 +03:00
Alexey Lavrenuke
66e13afe96 should probably work =) 2016-02-16 17:01:58 +03:00
Alexey Lavrenuke
cd97dcec48 Merge branch 'master' of github.com:yandex/yandex-tank into new-aggregator 2016-02-16 15:07:12 +03:00
Alexey Lavrenuke
d372fdff3a start jmeter refactoring 2016-02-16 15:06:36 +03:00
Alexey Lavrenuke
1ee3af2e53 Merge pull request #205 from f2nd/master
Fix excess monitoring metrics left from previous hosts
2016-02-16 14:29:50 +03:00
Alexey Lavrenuke
6e499e1431 fix typos 2016-02-16 14:29:08 +03:00
Mikhail Dyomin
7268c7b20b Fix excess monitoring metrics left from previous hosts 2016-02-16 14:19:51 +03:00
Mikhail Dyomin
e4bdb4ea67 Fix: more consistent final step for step(...) schedule 2016-02-16 13:46:07 +03:00
Alexey Lavrenuke
7adf8a69ef syncronize data and stat in Aggregator, make autostops work with new code 2016-02-10 20:11:08 +03:00
Alexey Lavrenuke
34f3544484 some refactoring 2016-02-09 19:34:55 +03:00
Alexey Lavrenuke
73cd2b9228 phantom instances 2016-02-09 18:21:10 +03:00
Alexey Lavrenuke
acae0631ef short only 2016-02-09 17:10:31 +03:00
Alexey Lavrenuke
75641ca092 fix imports 2016-02-09 16:26:39 +03:00
Alexey Lavrenuke
af061fb6eb fix phantom reader 2016-02-09 16:07:21 +03:00
Alexey Lavrenuke
476265cee5 update reader logic 2016-02-08 18:58:23 +03:00
Alexey Lavrenuke
7444a49056 phantom works 2016-02-08 17:53:00 +03:00
Alexey Lavrenuke
2766aa83e5 refactor phantom module a bit 2016-02-08 17:40:54 +03:00
Alexey Lavrenuke
d1fcd15344 some pep8 2016-02-04 16:56:23 +03:00
Alexey Lavrenuke
390f8e0ff4 autoformat 2016-02-04 15:25:06 +03:00
Alexey Lavrenuke
83b5baf4dc publish pandora instances 2016-02-04 15:03:52 +03:00
Alexey Lavrenuke
a7013872d5 make stats reader work 2016-02-03 19:17:45 +03:00
Alexey Lavrenuke
ed12e127b0 support stats reader in aggregator 2016-02-03 18:09:04 +03:00
Alexey Lavrenuke
f9c4b4a71b expvar, read stat data 2016-01-29 17:38:45 +03:00
Mikhail Dyomin
61577e7515 Fix agent hanging on broken ssh connection 2016-01-29 16:39:24 +03:00
Alexey Lavrenuke
f900b2dc22 small import fixes 2016-01-27 20:23:57 +03:00
Alexey Lavrenuke
47a9035228 monitoring 2016-01-27 18:28:08 +03:00
Alexey Lavrenuke
d467ccdd3c fix tips and tricks 2016-01-27 18:17:50 +03:00
Alexey Lavrenuke
295e449dcc left side of console 2016-01-27 18:03:58 +03:00
Alexey Lavrenuke
aeba6befe7 merge changes from master 2016-01-26 14:50:01 +03:00
belomore
037822edc9 rx,tx for default net monitoring; 2016-01-21 17:05:58 +03:00
Alexey Lavrenuke
ba7cca1931 support Pandora in Loadosophia plugin 2016-01-21 16:09:51 +03:00
Oles Pisarenko
5d969c9610 Edited loadosofia's message 2016-01-21 13:24:33 +03:00
Alexey Lavrenuke
1e2206cdb2 move api usage example to example 2016-01-20 15:18:42 +03:00
Alexey Lavrenuke
3b4f3191c6 add day multiplier 2016-01-20 15:16:54 +03:00
Alexey Lavrenuke
7d11f17f25 influx plugin docs 2016-01-18 16:35:39 +03:00
Alexey Lavrenuke
2cc113ced2 fix gun type parameter implementation 2016-01-18 15:47:31 +03:00
Alexey Lavrenuke
2a44cc272f fix parameter name 2016-01-18 15:42:39 +03:00
Alexey Lavrenuke
19e571bde2 indent pandora config 2016-01-18 15:36:33 +03:00
Alexey Lavrenuke
f6d170358c Merge pull request #195 from netortik/apiworker
__init__.py
2016-01-15 15:37:39 +03:00
Timur Torubarov
8ccb876bc9 import fix 2016-01-15 15:36:51 +03:00
Timur Torubarov
70b0ce71b8 __init__.py 2016-01-15 15:32:38 +03:00
Alexey Lavrenuke
88de87f2cf Merge pull request #194 from netortik/apiworker
apiworker init
2016-01-15 14:50:25 +03:00
Timur Torubarov
f2834a24af cosmetics 2016-01-15 14:47:56 +03:00
Timur Torubarov
029b5b6f8a apiworker init 2016-01-15 13:56:01 +03:00
Alexey Lavrenuke
b0e9b7d6b3 invalidate ammo cache if ammo_type changed 2016-01-15 13:51:55 +03:00
Timur Torubarov
19d431b45c removed sys.path.append 2016-01-13 14:56:54 +03:00
Timur Torubarov
50db5795ad added appropriate import lib -- imp -- for custom guns via bfg plugin in order to avoid module caching 2016-01-13 13:45:44 +03:00
Timur Torubarov
2f59ad9323 fix 2015-12-28 23:59:03 +03:00
Timur Torubarov
44f0c06a6c bugfix - appropriate wait for process termination 2015-12-28 23:41:52 +03:00
Ilya Krylov
0f3bd06042 connect_time option was updated in accordance with project aggreement. 2015-12-21 17:48:49 +03:00
Ilya Krylov
31112e3af7 connect_time option was added 2015-12-21 15:44:42 +03:00
Alexey Lavrenuke
5a9029e18e Workaround for PyCrypto bug (http://uucode.com/blog/2015/02/20/workaround-for-ctr-mode-needs-counter-parameter-not-iv/) 2015-12-16 14:57:11 +03:00
Andrey Sekretenko
87ce1aa584 [phantom] Fixed adding ssl via additional libs (added forgotten space) 2015-12-11 17:42:04 +03:00
Andrey Sekretenko
859dc952e5 Make phantom work without phantom-ssl when no ssl is required by config 2015-12-11 15:55:26 +03:00
Tonsofattraction
b6db282d89 sha-2 workaround
don't verify certs;
2015-12-08 18:02:27 +03:00
Alexey Lavrenuke
1ae108a272 Merge branch 'master' of github.com:yandex/yandex-tank into new-aggregator 2015-12-08 15:46:35 +03:00
Alexey Lavrenuke
2f2e62863c update pandora plugin 2015-12-07 17:01:01 +03:00
Alexey Lavrenuke
05bfde199a wip 2015-12-07 15:20:26 +03:00
Alexey Lavrenuke
37f3639141 console short only 2015-11-26 17:37:39 +03:00
Alexey Lavrenuke
7931f6ff70 quantiles, support enumerated tags 2015-11-26 16:58:23 +03:00
Alexey Lavrenuke
4f4f103a8c fixed hanging aggregator 2015-11-26 13:02:04 +03:00
Alexey Lavrenuke
104d56e9b8 WIP,aggregates, hangs on exit 2015-11-25 21:21:19 +03:00
Alexey Lavrenuke
155f447736 start removing old aggregator. Add Close() method to AbstractPlugin 2015-11-25 16:03:27 +03:00
Alexey Lavrenuke
a168247db1 phantom reader 2015-11-24 21:16:58 +03:00
Alexey Lavrenuke
9ae44b8b41 aggregator and tests 2015-11-24 19:54:53 +03:00
Alexey Lavrenuke
16ca043721 Merge branch 'master' of github.com:yandex/yandex-tank into new-aggregator 2015-11-24 14:47:27 +03:00
Alexey Lavrenuke
fc27b3f8e1 catch ALL exceptions when trying to execute ssh command 2015-11-24 14:46:32 +03:00
Alexey Lavrenuke
4948cf523c consider ssh timeout parameter 2015-11-24 14:39:20 +03:00
Alexey Lavrenuke
3669d68cfd start work on chopper 2015-11-24 14:35:41 +03:00
Alexey Lavrenuke
73f018db08 Merge branch 'master' of github.com:yandex/yandex-tank into new-aggregator 2015-11-23 20:30:06 +03:00
Alexey Lavrenuke
0adabe56a2 logging 2015-11-19 19:52:49 +03:00
Alexey Lavrenuke
b3f8fc44e4 return when failed to install monitoring 2015-11-19 17:59:07 +03:00
Alexey Lavrenuke
20a7700455 catch authentication exception 2015-11-19 17:57:48 +03:00
Alexey Lavrenuke
2e4fa3ab01 less verbose logging 2015-11-18 17:53:18 +03:00
Alexey Lavrenuke
86d3cf7e41 fix bug 2015-11-18 17:06:52 +03:00
Alexey Lavrenuke
e7c8c81cfc monitoring agent data bufferization 2015-11-18 15:31:46 +03:00
Alexey Lavrenuke
3425a54859 monitoring poll 2015-11-17 19:34:42 +03:00
Alexey Lavrenuke
f7c5a2a11f better logging 2015-11-17 19:27:43 +03:00
Alexey Lavrenuke
2575099ada log message formatting 2015-11-17 19:17:38 +03:00
Alexey Lavrenuke
837a5c301f some details 2015-11-17 19:16:06 +03:00
Alexey Lavrenuke
8d9ecbb90d less verbose logging 2015-11-17 19:13:04 +03:00
Alexey Lavrenuke
846924cc97 pep8 2015-11-17 19:07:01 +03:00
Alexey Lavrenuke
4e8886c70b no exceptions 2015-11-17 17:52:25 +03:00
Alexey Lavrenuke
6cd75fcb63 migrate monitoring to paramiko 2015-11-17 17:01:49 +03:00
Alexey Lavrenuke
08c1806bac trying paramiko 2015-11-16 19:30:08 +03:00
Alexey Lavrenuke
43ec893d68 close phantom log 2015-11-13 21:49:46 +03:00
Alexey Lavrenuke
64eb70baf4 close mon file on end_test 2015-11-13 21:35:35 +03:00
Alexey Lavrenuke
65fb3d7496 catch exceptions on removing agent 2015-11-13 21:06:06 +03:00
Alexey Lavrenuke
a1041b02ea pep8 2015-11-13 20:01:35 +03:00
Alexey Lavrenuke
251b1e0567 close pipes after stop 2015-11-13 18:13:35 +03:00
Alexey Lavrenuke
b6228313ca close mon file in finalizer 2015-11-13 17:03:16 +03:00
Alexey Lavrenuke
e3e6f9814a start implementing new aggregator 2015-11-12 18:17:49 +03:00
Alexey Lavrenuke
5d816d81ab grafana link 2015-11-09 20:20:00 +03:00
Alexey Lavrenuke
2b5dada3f8 unique id 2015-11-09 19:14:35 +03:00
Alexey Lavrenuke
c8dade33c3 parameters in influxdb plugin 2015-11-09 18:35:18 +03:00
Alexey Lavrenuke
c65a88bbda tank tag 2015-11-08 00:34:31 +03:00
Alexey Lavrenuke
0cc2e8c014 InfluxDB plugin 2015-11-07 20:21:02 +03:00
Alexey Lavrenuke
0d84d9839a support pandora gun types 2015-10-30 19:50:05 +03:00
Alexey Lavrenuke
d9dae1f18e stepper info was immutable 2015-10-29 16:51:57 +03:00
Alexey Lavrenuke
7cb822bb12 appears that #71 is harder then it seemed 2015-10-29 16:45:12 +03:00
Alexey Lavrenuke
1259321d5f propose a fix for #71 2015-10-29 16:20:10 +03:00
Alexey Lavrenuke
d5e9907a3e * change default artifacts dir to ./logs
* require psutil >= 1.2.1
2015-10-29 15:56:02 +03:00
Alexey Lavrenuke
78a234a14a float insead of int 2015-10-28 18:21:21 +03:00
Alexey Lavrenuke
c874636469 auto-convert old-style plugin paths 2015-10-28 16:16:13 +03:00
Alexey Lavrenuke
b51e38e7c8 * pandora plugin docs
* add ifmain to cli.py
2015-10-27 16:34:03 +03:00
Alexey Lavrenuke
4d227109c3 set pandora target from load.ini 2015-10-27 15:33:43 +03:00
Alexey Lavrenuke
3f106404b2 pandora schedule in config 2015-10-26 19:27:39 +03:00
Alexey Lavrenuke
dcc68ee333 Pandora support 2015-10-26 18:52:35 +03:00
Epikhin Mikhail
47d8e23554 Use one taskset_path. Use 'affinity' instead of 'cpu' 2015-09-24 16:51:10 +03:00
Epikhin Mikhail
39d5754922 Added taskset for tankcore 2015-09-23 21:36:00 +03:00
Epikhin Mikhail
796e2c5b2b Added taskset for phantom 2015-09-23 20:42:40 +03:00
Alexey Lavrenuke
673b4b3110 override headers anywhere in uri-style and uri+post-style ammo files 2015-09-11 19:09:17 +03:00
Alexey Lavrenuke
34e882afa6 retry posting killer tasks if queue full 2015-09-11 16:58:43 +03:00
Alexey Lavrenuke
d1dd93269d Merge pull request #174 from nnugumanov/phantom-ssl-configure
added support in yandex-tank for client certificates and client cipher lists
2015-08-25 14:42:13 +03:00
Nurlan Nugumanov
6aa6392a5e added support in yandex-tank for client certificates and client cipher lists
new options:
client_cipher_suites - preferred client's ciphers list
client_certificate, client_key - certificate and it's private key used in Client-auth TLS handshake
2015-08-25 00:49:16 +06:00
Tonsofattraction
d009bcdd1b We still need to decode content for ungzipped data
But we have to read more from stream so that we can be sure to receive those 2 bytes we need
2015-08-24 17:22:52 +03:00
Alexey Lavrenuke
58e879c367 Merge pull request #170 from nnugumanov/HEAD_with_content-length
requests.head omits Content-Length
2015-08-24 16:37:42 +03:00
Alexey Lavrenuke
f4798c9e98 Merge pull request #166 from maklaut/master
Extend JMeter known exceptions + fix for #106
2015-08-24 16:28:55 +03:00
Alexey Lavrenuke
b489154d25 Merge pull request #172 from Tonsofattraction/patch-2
download ammofiles of unknown content-length
2015-08-24 16:27:46 +03:00
Tonsofattraction
098971ba4c download ammofiles of unknown content-length 2015-08-24 15:27:40 +03:00
Tonsofattraction
94fa7b58e4 correct gzip detection
do not decode stream content for binary comparison
2015-08-24 15:12:02 +03:00
Nurlan Nugumanov
c32fe54786 requests.head omits Content-Length and therefore yandex-tank cannot determine the ammofile size and always streams it
https://github.com/kennethreitz/requests/issues/2731
Requests library specifies gzip, deflate as acceptable encodings by default and urllib2 specifies identity by default.
2015-08-20 16:20:47 +03:00
Alexey Lavrenuke
37363823bd Merge pull request #167 from asekretenko/master
Autostop plugin: save criteria string that triggered autostop;  shellexec.catch_out option
2015-07-28 16:40:32 +03:00
Alexander Sukhov
14a0bf0e73 Fix for issue #106 jmeter custom log cause an empty stats in yandex-tank 2015-07-24 19:57:36 +03:00
Alexander Sukhov
a12bfa92ad Extend JMeter known exceptions 2015-07-24 19:55:56 +03:00
Alexey Lavrenuke
53660d859c Merge pull request #165 from nnugumanov/master
bugfix for previous pull 163
2015-07-22 17:44:08 +03:00
Alexey Lavrenuke
65b9a3ebb9 Merge pull request #164 from netortik/master
Monitoring plugin metrics CpuLa and CpuStat refactoring
2015-07-22 17:43:13 +03:00
Nurlan Nugumanov
883713b3d1 if there are no access to targets or monitoring.config=none, then MonitoringPlugin.MonitoringCollector() doesn't exist 2015-07-22 17:32:52 +03:00
netortik
98d4cda848 removed 'with'-construction in order to support python <2.7 2015-07-22 17:20:13 +03:00
netortik
23a740023d Monitoring plugin metrics CpuLa and CpuStat refactoring 2015-07-22 15:52:49 +03:00
Nurlan Nugumanov
b60befab86 Fixed bug with excessive amount of send_data collected from agents
agent starts collecting date in prepare_test() stage. If for some reasons, start_test() has been delayed, agent's pipe collects unnecessary data.
And when start_test() occures, MonitoringCollector.poll prints huge blocks, thanks to debug print "Data after filtering .."

Fix: there is nothing to be done with agent - it doesn't know test status, when it was started etc.
So the only option is to compare timestamps from agent's data with time when start_test() has been occured and therefore
1) reduce debug output
2) send to datastorage only needed data
2015-07-22 13:45:51 +03:00
Andrey Sekretenko
8f3df93d37 shellexec.catch_out option 2015-07-16 15:42:18 +03:00
Andrey Sekretenko
453d473d34 Merge branch 'master' of github.com:yandex/yandex-tank 2015-07-16 12:04:07 +03:00
Tonsofattraction
0d4f3edad5 Update util.py
handle 405 for head method
handle 302 for head method
2015-06-29 19:51:12 +03:00
Alexey Lavrenuke
5eec183198 publish eta 2015-06-23 15:17:48 +03:00
Alexey Lavrenuke
22cf2b3484 indent status json 2015-06-23 14:04:09 +03:00
Alexey Lavrenuke
ef72b3646e log status 2015-06-23 14:02:06 +03:00