Skip to content

Commit

Permalink
Match number of apache workers on tile servers to the CPU count
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Sep 12, 2023
1 parent 5fde77f commit eaf2ba2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions cookbooks/tile/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
default[:postgresql][:monitor_database] = "gis"

default[:accounts][:users][:tile][:status] = :role

default[:apache][:event][:server_limit] = node.cpu_cores * 5 / 4
default[:apache][:event][:max_request_workers] = node.cpu_cores * node[:apache][:event][:threads_per_child]
default[:apache][:event][:max_spare_threads] = node.cpu_cores * node[:apache][:event][:threads_per_child]
3 changes: 0 additions & 3 deletions roles/tile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@
:mpm => "event",
:timeout => 60,
:event => {
:server_limit => 80,
:max_request_workers => 1200,
:threads_per_child => 20,
:min_spare_threads => 300,
:max_spare_threads => 1200,
:max_connections_per_child => 0,
:async_request_worker_factor => 4,
:listen_cores_buckets_ratio => 8
Expand Down

0 comments on commit eaf2ba2

Please sign in to comment.