Closed RocketRaccoon closed 6 years ago
Just try this method:
[tank] plugin_ShellExec=yandextank.plugins.ShellExec plugin_phantom=yandextank.plugins.Phantom plugin_aggreg=yandextank.plugins.Aggregator plugin_console=yandextank.plugins.ConsoleOnline
You use "direct" way to install Yandex.Tank - from git. So you have to use python-style adding.
Cool. That worked. How do I should add Web Online plugin? It seems that it is not exist in plugins folder, was it renamed or moved?
As I know there is dedicated plugin for web online - nline https://github.com/yandex-load/yatank-online . Feel free to try and get support!
Ok, I have installed yatank-online (at least i think so). Added plugin_web=yatank_OnlineReport to my [tank] section. Should I add [web] section or it have to be configurated in another way? Now my ini file looks like:
[tank]
plugin_ShellExec=yandextank.plugins.ShellExec
plugin_phantom=yandextank.plugins.Phantom
plugin_aggreg=yandextank.plugins.Aggregator
plugin_console=yandextank.plugins.ConsoleOnline
plugin_web=yatank_OnlineReport
[phantom]
address=google.ru:80
rps_schedule=const(2, 2m)
headers = [Host: google.ru] [Connection: close] [Bloody: yes]
[web]
port = 8001
interval = 5
manualstop = 1
I'm expected to see online reporting on adress [server_name]:8001. Am I right?
I assigned question to direvius@ He is mainteiner Online plugin
I have the same problem, but pointed tank section and installing via PyPI don't help:
19:43:15 INFO: No config passed via cmdline, using ./load.ini
19:43:15 INFO: Loading configs...
19:43:15 INFO: Loading plugins...
19:43:15 INFO: Exception: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/yandextank/core/consoleworker.py", line 224, in configure
self.core.load_plugins()
File "/usr/local/lib/python2.7/dist-packages/yandextank/core/tankcore.py", line 242, in load_plugins
plugin = il.import_module(plugin_path)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: Import by filename is not supported.
19:43:15 ERROR: Import by filename is not supported.
My load.ini:
[tank]
plugin_ShellExec=yandextank.plugins.ShellExec
plugin_phantom=yandextank.plugins.Phantom
plugin_aggreg=yandextank.plugins.Aggregator
plugin_console=yandextank.plugins.ConsoleOnline
[phantom]
address=google.ru:80
rps_schedule=const(2, 2m)
headers = [Host: google.ru] [Connection: close] [Bloody: yes]
[web]
port = 8001
interval = 5
manualstop = 1
@yarax look for default yandex-tank ini, try these locations https://github.com/yandex-load/yandex-tank-api#tank-configuration
Hi, I have tried to install tank on RHEL 6.6 following these instructions 1 and 2. When launching yandex-tank got following exception:
I'm not good either in linux nor python so will be grateful for the help
My load.ini
Without [tank] section it works with no errors.