1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/test
Christian Gregg 81d26e91b7
Print warning when running one-worker cluster (#2565)
* Print warning when running one-worker cluster

Running Puma in cluster-mode is likely a misconfiguration in most
scenarios.

Cluster mode has some overhead of running an addtional 'control' process
in order to manage the cluster. If only running a single worker it is
likely not worth paying that overhead vs running in single mode with
additional threads instead.

There are some scenarios where running cluster mode with a single worker
may still be warranted and valid under certain deployment scenarios, see
the linked issue for details.

From experience at work, we were able to migrate our Rails applications
from single worker cluster to single-mode and saw a reduction of RAM
usage of around ~15%.

Closes #2534

* Remove link to issue

* Add #silence_single_worker_warning option

* Test single_worker_warning
2021-03-09 07:40:31 -07:00
..
bundle_preservation_test Leave BUNDLE_GEMFILE unset in workers if it was unset in the master (#2154) 2020-03-10 11:46:20 -06:00
config Allow specifying the desired IO selector backend for nio4r (#2522) 2021-01-12 09:39:33 -07:00
helpers Fix CI (#2561) 2021-03-02 08:56:11 -07:00
minitest Support parallel tests in verbose progress reporting (#2223) 2020-04-20 09:45:43 +09:00
rackup Restore sync=true on global stdout/stderr streams (#2557) 2021-02-22 13:17:03 -07:00
worker_gem_independence_test Remove use of json gem (#2479) 2020-11-10 10:16:42 -07:00
helper.rb Updates for non MRI CI stablity [changelog skip] (#2434) 2020-10-19 09:22:28 -06:00
test_app_status.rb Change Puma.stats to return a hash instead of a JSON string (#2086) 2019-12-17 12:38:48 +07:00
test_binder.rb Binder - add ssl localhost logging, use ternary operator (#2533) 2021-01-24 14:29:13 -07:00
test_busy_worker.rb Fix CI (#2561) 2021-03-02 08:56:11 -07:00
test_cli.rb Remove use of json gem (#2479) 2020-11-10 10:16:42 -07:00
test_config.rb Print warning when running one-worker cluster (#2565) 2021-03-09 07:40:31 -07:00
test_error_logger.rb Avoid mutating stdout and stderr (#2486) 2020-12-02 10:43:53 -07:00
test_events.rb Add #flush and #sync methods to Puma::NullIO (#2553) 2021-02-10 15:30:24 -07:00
test_http10.rb make test_helper no longer be loaded as a test (#1283) 2017-05-12 12:16:55 -07:00
test_http11.rb Fix typo in maximum URI path length 2020-08-23 11:40:59 +02:00
test_integration_cluster.rb Print warning when running one-worker cluster (#2565) 2021-03-09 07:40:31 -07:00
test_integration_pumactl.rb Fix-up test_refork, hot_restart_does_not_drop_connections [changelog skip] (#2441) 2020-10-22 13:54:57 -06:00
test_integration_single.rb Fix CI (#2561) 2021-03-02 08:56:11 -07:00
test_integration_ssl.rb Remove accept_nonblock.rb, add test_integration_ssl.rb (#2448) 2020-10-25 16:15:20 -06:00
test_integration_systemd.rb Add systemd notify and watchdog support (#2438) 2020-10-26 16:02:31 -06:00
test_iobuffer.rb IOBuffer back to Ruby (#1980) 2020-02-27 13:50:34 -06:00
test_json.rb Remove use of json gem (#2479) 2020-11-10 10:16:42 -07:00
test_launcher.rb Fix Events#fire_on_stopped! double call, add test (#2497) 2020-12-03 09:40:34 -07:00
test_minissl.rb Adjust test files for 'no ssl' compile 2020-09-14 12:20:09 -05:00
test_null_io.rb Add #flush and #sync methods to Puma::NullIO (#2553) 2021-02-10 15:30:24 -07:00
test_out_of_band_server.rb Updates for non MRI CI stablity [changelog skip] (#2434) 2020-10-19 09:22:28 -06:00
test_persistent.rb Updates for non MRI CI stablity [changelog skip] (#2434) 2020-10-19 09:22:28 -06:00
test_plugin.rb PluginRegistry#fire_background - fix up per issue 1972 (#1973) 2019-09-18 15:53:29 +02:00
test_preserve_bundler_env.rb Fix warnings for !HAS_FORK [changelog skip] (#2187) 2020-03-16 09:29:18 -06:00
test_puma_server.rb Set @env[CONTENT_LENGTH] value as string. (#2549) 2021-02-04 06:59:39 -07:00
test_puma_server_ssl.rb Improve reliability of non-MRI CI 2020-10-14 21:37:45 -05:00
test_pumactl.rb Refactor control_cli.rb - add CMD_PATH_SIG_MAP (#2451) 2020-10-28 07:09:37 -06:00
test_rack_handler.rb Build proper url instead of interpolating in Puma::DSL#port (#2521) 2021-01-04 10:43:45 -07:00
test_rack_server.rb Merge pull request #2306 from alexeevit/feature/use-tempfile-for-state-sock-files 2020-09-08 12:49:04 -07:00
test_redirect_io.rb Small test fixes - helpers/tmp_path.rb, helper.rb & test_redirect_io.rb 2020-09-09 14:44:02 -05:00
test_response_header.rb Make illegal header matching more stringent (#2510) 2020-12-10 08:15:25 -07:00
test_thread_pool.rb Better error handling during force shutdown (#2271) 2020-09-24 08:24:34 -06:00
test_unix_socket.rb Add tmp_path manager module 2020-07-12 20:00:29 +03:00
test_web_server.rb Test files - more port handling 2020-07-22 21:00:03 -05:00
test_worker_gem_independence.rb Remove use of json gem (#2479) 2020-11-10 10:16:42 -07:00