snapshot of https://github.com/zulip/zulip.git @ 48c69911c7dd4e03b20552eb3bd77ad8151c1357 (2026-09-15)
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
This commit is contained in:
86
puppet/zulip/templates/postgresql/zulip.conf.template.erb
Normal file
86
puppet/zulip/templates/postgresql/zulip.conf.template.erb
Normal file
@@ -0,0 +1,86 @@
|
||||
<% unless @listen_addresses.nil? -%>
|
||||
# Bind to specific address
|
||||
listen_addresses = <%= @listen_addresses %>
|
||||
<% end -%>
|
||||
|
||||
# This has an improved set of stopwords.
|
||||
default_text_search_config = 'zulip.english_us_search'
|
||||
|
||||
# Provide more comprehensive on-disk logs
|
||||
logging_collector = on
|
||||
log_directory = '/var/log/postgresql'
|
||||
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
|
||||
log_rotation_age = 7d
|
||||
log_rotation_size = 100MB
|
||||
log_min_duration_statement = 500
|
||||
log_line_prefix = '%m [%c]: [%l-1] '
|
||||
log_checkpoints = on
|
||||
log_lock_waits = on
|
||||
log_temp_files = 0
|
||||
log_autovacuum_min_duration = 100
|
||||
|
||||
# Adjust autovacuum for having many mostly-append-only tables
|
||||
autovacuum_freeze_max_age = 2000000000
|
||||
vacuum_freeze_min_age = 1000000000
|
||||
vacuum_freeze_table_age = 1800000000
|
||||
|
||||
# Performance settings
|
||||
max_connections = 1000
|
||||
maintenance_work_mem = <%= @maintenance_work_mem %>
|
||||
effective_cache_size = <%= @effective_cache_size %>
|
||||
work_mem = <%= @work_mem %>
|
||||
shared_buffers = <%= @shared_buffers %>
|
||||
<% unless @wal_buffers.nil? -%>
|
||||
wal_buffers = <%= @wal_buffers %>
|
||||
<% end -%>
|
||||
<% unless @min_wal_size.nil? -%>
|
||||
min_wal_size = <%= @min_wal_size %>
|
||||
<% end -%>
|
||||
<% unless @max_wal_size.nil? -%>
|
||||
max_wal_size = <%= @max_wal_size %>
|
||||
<% end -%>
|
||||
<% unless @random_page_cost.nil? -%>
|
||||
random_page_cost = <%= @random_page_cost %>
|
||||
<% end -%>
|
||||
<% if @version.to_i >= 18 && @io_uring_available -%>
|
||||
io_method = io_uring
|
||||
<% end -%>
|
||||
<% unless @effective_io_concurrency.nil? -%>
|
||||
effective_io_concurrency = <%= @effective_io_concurrency %>
|
||||
<% end -%>
|
||||
<% unless @max_worker_processes.nil? -%>
|
||||
max_worker_processes = <%= @max_worker_processes %>
|
||||
<% end -%>
|
||||
<% unless @max_parallel_workers_per_gather.nil? -%>
|
||||
max_parallel_workers_per_gather = <%= @max_parallel_workers_per_gather %>
|
||||
<% end -%>
|
||||
<% unless @max_parallel_workers.nil? -%>
|
||||
max_parallel_workers = <%= @max_parallel_workers %>
|
||||
<% end -%>
|
||||
<% unless @max_parallel_maintenance_workers.nil? -%>
|
||||
max_parallel_maintenance_workers = <%= @max_parallel_maintenance_workers %>
|
||||
<% end -%>
|
||||
|
||||
<% if @s3_backups_bucket != '' -%>
|
||||
# WAL backups to S3 (may also be used for replication)
|
||||
archive_mode = on
|
||||
archive_command = '/usr/bin/timeout 10m /usr/local/bin/env-wal-g wal-push %p'
|
||||
restore_command = '/usr/local/bin/env-wal-g wal-fetch "%f" "%p"'
|
||||
<% end -%>
|
||||
<% unless @replication_primary.nil? || @replication_user.nil? -%>
|
||||
# Streaming replication
|
||||
primary_conninfo = 'host=<%= @replication_primary %> user=<%= @replication_user -%>
|
||||
<% if @replication_password != '' %> password=<%= @replication_password %><% end -%>
|
||||
<% unless @ssl_mode.nil? %> sslmode=<%= @ssl_mode %><% end -%>
|
||||
'
|
||||
<% end -%>
|
||||
|
||||
<% unless @ssl_cert_file.nil? -%>
|
||||
ssl_cert_file = '<%= @ssl_cert_file %>'
|
||||
<% end -%>
|
||||
<% unless @ssl_key_file.nil? -%>
|
||||
ssl_key_file = '<%= @ssl_key_file %>'
|
||||
<% end -%>
|
||||
<% unless @ssl_ca_file.nil? -%>
|
||||
ssl_ca_file = '<%= @ssl_ca_file %>'
|
||||
<% end -%>
|
||||
Reference in New Issue
Block a user