Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing log collection for monitoring plugin and StepperWrapper. #161

Closed
wants to merge 3 commits into from

Conversation

vovapi
Copy link
Contributor

@vovapi vovapi commented Jul 18, 2015

Monitoring plugin stores configs files like monitoring_default_*.xml in current working directory, and so does StepperWrapper with access.log_*.stpd and access.log_*.stpd_si.json files.

@nettorta
Copy link
Member

Why do you need such a thing for stepper? Tank have cache functionality for stpd files: it uses a directory to store cache (default - current working directory) and if you move your stpd files from cache directory, stepper will generate ammo even if you already have appropriate stpd file for you test.

It's better to specify special directory (via 'cache_dir' option of 'phantom' section) for stpd files.

@vovapi
Copy link
Contributor Author

vovapi commented Jul 22, 2015

I didn't know about this option. Still, these files are piling up in current working directory. I think these files needs to be moved or deleted after tank's work.

@vovapi
Copy link
Contributor Author

vovapi commented Jul 22, 2015

Maybe default value for cache_dir must be changed to '$CWD/.tank/' ?

@nettorta
Copy link
Member

summon @direvius

@direvius
Copy link
Contributor

Yandex.Tank applies options from files in /etc/yandex-tank directory. Place a file named /etc/yandex-tank/defaults.ini and add your default options there.

@direvius
Copy link
Contributor

Per-user settings are in ~/.yandex-tank file, not directory

@stereodenis
Copy link

@direvius yandex-tank имеет по-умолчанию такое поведение: создаёт логи в корне проекта. Вам не кажется это не очень хорошим стилем?

@direvius
Copy link
Contributor

@stereodenis предполагается, что пользователь для стрельб по сервису создает папку, в которой будут, кроме файлика конфигурации, храниться и логи всех стрельб, которые оттуда произведены. Всем кажется по-разному, в любом случае, если это поменять -- некоторым это поломает автоматизацию. Дефолты, с другой стороны, можно переопределить как вам нравится -- в /etc/yandex-tank

@direvius direvius closed this Sep 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants