cassandra-test-and-deploy icon indicating copy to clipboard operation
cassandra-test-and-deploy copied to clipboard

Enhancement: add nohup to cassandra-stress command, to support long runs

Open eyalgutkind opened this issue 8 years ago • 2 comments

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.

eyalgutkind avatar Feb 03 '17 02:02 eyalgutkind

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 .

dorlaor avatar Feb 03 '17 04:02 dorlaor

@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.

tzach avatar Feb 03 '17 09:02 tzach