cassandra-test-and-deploy
cassandra-test-and-deploy copied to clipboard
Enhancement: add nohup to cassandra-stress command, to support long runs
In cases where the connection to the shell is terminated, the results file in the loading client are truncated. Adding: shell: sleep {{sleep_between_runs}}; nohup {{taskset}} cassandra-stress write no-warmup {{command_options}} -pop seq={{range}} -node {{ip_list}} -rate threads={{threads}} -log file={{log_file}}.{{iteration}}.data {{stress_options}}
to the stress.yaml file helps to prevent the issue of truncated result files in the client side.
Before you apply it, test why Eyal loses the log file sometimes. Eyal, you can just send a trivial patch
On Thu, Feb 2, 2017 at 6:33 PM, eyalgutkind [email protected] wrote:
In cases where the connection to the shell is terminated, the results file in the loading client are truncated. Adding: shell: sleep {{sleep_between_runs}}; nohup {{taskset}} cassandra-stress write no-warmup {{command_options}} -pop seq={{range}} -node {{ip_list}} -rate threads={{threads}} -log file={{log_file}}.{{iteration}}.data {{stress_options}}
to the stress.yaml file helps to prevent the issue of truncated result files in the client side.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/scylladb/cassandra-test-and-deploy/issues/120, or mute the thread https://github.com/notifications/unsubscribe-auth/ABp6RZkq_as9O6xVLBxzmRjMQa8ePf4Vks5rYpHegaJpZM4L15QE .
@eyalgutkind for a long stress session I'm running the Ansible script itself from a small EC2 server, using tmux, so I can disconnect my laptop whenever I want. Also, PR are welcome.