Last active
November 22, 2017 13:16
-
-
Save f84anton/082a58c8cffdd046c0e85430be1db821 to your computer and use it in GitHub Desktop.
yandex.tank example config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tank] | |
; plugin_overload=yandextank.plugins.Overload | |
plugin_uploader=yandextank.plugins.DataUploader overload | |
[overload] | |
# to obtain a token click on your avatar in the top-right corner | |
token_file=token.txt | |
job_name=files-test-dfw1-sa-east-1 | |
[monitoring] | |
config=none | |
[phantom] | |
address=x.x.x.x:443 ;Target's address | |
rps_schedule=const(1500, 20m) ;load scheme | |
instances=1500 | |
; Headers and URIs for GET requests | |
header_http = 1.1 | |
ssl = 1 | |
writelog = proto_error | |
buffered_seconds = 15 | |
timeout = 30s | |
headers = [Host: x.x.x] | |
[Connection: close] | |
uris = /files/news/part_2/21305/53155-collage10-1000-a710a62ffa-1484633948.jpg | |
/files/news/part_2/21305/53555-collage225-1000-ca2858170d-1484633948.jpg | |
/files/news/part_2/21305/54155-collage8-1000-bd0c1ca86d-1484633948.jpg | |
/files/news/part_2/21305/53905-collage4-1000-63219b2f00-1484633948.jpg | |
/files/news/part_2/21305/53755-collage263-1000-f73100ee37-1484633948.jpg | |
/files/news/part_2/21305/1657760-45710260--1493286180-1200-1-1493286180-1000-4836e43922-1493286876.jpg | |
/files/news/part_2/21305/53655-collage233-1000-b3c3250931-1484633948.jpg | |
/files/news/part_2/21305/53705-collage234-1000-64c0a1ab02-1484633948.jpg | |
/files/news/part_2/21305/53955-collage5-1-1000-45a3118e0d-1484633948.jpg | |
/files/news/part_2/21305/53255-collage2-22-1000-a13a9f3435-1484633948.jpg | |
/files/news/part_2/21305/53105-collage1-1000-0bf6bea52e-1484633948.jpg | |
/files/news/part_32/320460/12544860-YX3nRDF-1490235184-650-3a18d49b0c-1490620910.jpg | |
/files/news/part_32/320460/12545010-hi-res-dar-14-1490258439-650-8561fcae53-1490620910.jpg | |
/files/news/part_32/320460/12545060-f6dc05163077c549f8a5ed2151047574-1490248798-650-d1f6b99e03-1490620910.jpg | |
/files/news/part_32/320460/12545110-13329210-1-2ImagePhoto---0-1490264917-1490264925-650-3-1490264925-650-f8ab2a971b-1490620910.jpg | |
/files/news/part_32/320460/12545160-5-Really-1490239604-650-3cb0e6136d-1490620910.jpg | |
/files/news/part_32/320460/12545210-super-lazy-06-1490249234-650-ce6fd25b24-1490620910.jpg | |
/files/news/part_32/320460/12545260-YHiulhr-1490241162-650-c8ea14d0ac-1490620910.jpg | |
/files/news/part_32/320460/12545310-r5GVGxi-1490241521-650-eeee3c5cd6-1490620910.jpg | |
/files/news/part_32/320460/12545360-securityguard-1490239955-650-acb176d8ab-1490620910.jpg | |
/files/news/part_32/320460/12544910-dd3712e5-af7d-4e15-9e11-1b77000374b0-1490240773-650-a4727c0f06-1490620910.jpg | |
/files/news/part_32/320460/12545410-tumblr_o4cw0v7KSJ1qigfjto1_1280-1490248993-650-da38778df4-1490620910.jpg | |
/files/news/part_32/320460/12545460-11-1490344486-650-ba80ff3414-1490620910.jpg | |
/files/news/part_32/320460/12545510-7013123484908538-1490241497-650-16a9135529-1490620910.jpg | |
/files/news/part_32/320460/12545560-13513610-250871-0-1490339177-1490339189-650-1-1490339189-650-492aa9d9f5-1490620910.jpg | |
/files/news/part_32/320460/12545710-applecoresticker-1490240196-650-824f3bd067-1490620910.jpg | |
/files/news/part_32/320460/12545760-147420433562-1490241483-650-b5358b3dce-1490620910.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core: | |
lock_dir: . | |
overload: {enabled: true, job_name: host_static_test_5m, package: yandextank.plugins.DataUploader, | |
token_file: token.txt} | |
phantom: | |
address: x.x.x.x:443 | |
header_http: '1.1' | |
headers: '[Host: www.xxx] | |
[Connection: close]' | |
instances: 10 | |
load_profile: {load_type: rps, schedule: 'const(12, 3m)'} | |
package: yandextank.plugins.Phantom | |
ssl: true | |
uris: /files/test.dat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -v $(pwd):/var/loadtest -v $HOME/.ssh:/root/.ssh --net host -it --rm direvius/yandex-tank -c load.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vm.swappiness = 0 | |
net.ipv4.tcp_max_syn_backlog = 40000 | |
net.core.somaxconn = 40000 | |
net.ipv4.tcp_sack = 1 | |
net.ipv4.tcp_window_scaling = 1 | |
net.ipv4.tcp_fin_timeout = 15 | |
net.ipv4.tcp_keepalive_intvl = 30 | |
net.ipv4.tcp_tw_reuse = 1 | |
net.ipv4.tcp_moderate_rcvbuf = 1 | |
net.ipv4.tcp_max_tw_buckets = 65536 | |
net.ipv4.tcp_tw_recycle = 1 | |
net.ipv4.tcp_tw_reuse = 0 | |
net.ipv4.tcp_max_syn_backlog = 131072 | |
net.ipv4.tcp_syn_retries = 3 | |
net.ipv4.tcp_synack_retries = 3 | |
net.ipv4.tcp_retries1 = 3 | |
net.ipv4.tcp_retries2 = 8 | |
net.ipv4.tcp_rmem = 16384 174760 349520 | |
net.ipv4.tcp_wmem = 16384 131072 262144 | |
net.ipv4.tcp_mem = 262144 524288 1048576 | |
net.ipv4.tcp_max_orphans = 65536 | |
net.ipv4.tcp_fin_timeout = 10 | |
net.ipv4.tcp_low_latency = 1 | |
net.ipv4.tcp_syncookies = 0 | |
net.netfilter.nf_conntrack_max = 1048576 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment