Posted 29 days ago. Visible to the public.

How to fix parallel_tests with Redis on powerful machines

When you have a powerful machine with 16 cores, you might run into an error like

Copy
Refusing to use Redis db#16 The Redis DB number should be between 2 and 15, since we're using db#1 for development and the default Redis config has 16 databases, starting with db#0.

The easiest way to fix this is limiting the number of parallel processes that are used in parallel cucumber runs.
To do this, you can set an environment variable in your ~/.bashrc:

Copy
export PARALLEL_TEST_PROCESSORS=14

By refactoring problematic code and creating automated tests, makandra can vastly improve the maintainability of your Rails application.

Owner of this card:

Avatar
Daniel Straßner
Last edit:
29 days ago
by Daniel Straßner
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Daniel Straßner to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more