Skip to content

Commit 629118d

Browse files
committed
Update configs
1 parent 324b8a6 commit 629118d

4 files changed

Lines changed: 811 additions & 319 deletions

File tree

resources/modules/PostgreSQL-18/ospanel_data/default/templates/postgresql.conf

Lines changed: 78 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# require a server shutdown and restart to take effect.
2222
#
2323
# Any parameter can also be given as a command-line option to the server, e.g.,
24-
# "postgres -c log_connections=on". Some parameters can be changed at run time
24+
# "postgres -c log_connections=all". Some parameters can be changed at run time
2525
# with the "SET" SQL command.
2626
#
2727
# Memory units: B = bytes Time units: us = microseconds
@@ -79,6 +79,8 @@ max_connections = 128
7979
#authentication_timeout = 1min # 1s-600s
8080
#password_encryption = scram-sha-256 # scram-sha-256 or md5
8181
#scram_iterations = 4096
82+
#md5_password_warnings = on
83+
#oauth_validator_libraries = '' # comma-separated list of trusted validator modules
8284

8385
# GSSAPI using Kerberos
8486

@@ -94,9 +96,10 @@ ssl = off
9496
#ssl_crl_file = ''
9597
#ssl_crl_dir = ''
9698
#ssl_key_file = ''
97-
#ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers
99+
#ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed TLSv1.2 ciphers
100+
#ssl_tls13_ciphers = '' # allowed TLSv1.3 cipher suites, blank for default
98101
#ssl_prefer_server_ciphers = on
99-
#ssl_ecdh_curve = 'prime256v1'
102+
#ssl_groups = 'X25519:prime256v1'
100103
#ssl_min_protocol_version = 'TLSv1.2'
101104
#ssl_max_protocol_version = ''
102105
#ssl_dh_params_file = ''
@@ -155,35 +158,40 @@ dynamic_shared_memory_type = windows # the default is usually the first o
155158

156159
#temp_file_limit = -1 # limits per-process temp file space
157160
# in kilobytes, or -1 for no limit
158-
161+
#file_copy_method = copy # copy, clone (if supported by OS)
159162
#max_notify_queue_pages = 1048576 # limits the number of SLRU pages allocated
160163
# for NOTIFY / LISTEN queue
161164

162165
# - Kernel Resources -
163166

164167
#max_files_per_process = 1000 # min 64
165168

166-
# - Cost-Based Vacuum Delay -
167-
168-
#vacuum_cost_delay = 0 # 0-100 milliseconds (0 disables)
169-
#vacuum_cost_page_hit = 1 # 0-10000 credits
170-
#vacuum_cost_page_miss = 2 # 0-10000 credits
171-
#vacuum_cost_page_dirty = 20 # 0-10000 credits
172-
#vacuum_cost_limit = 200 # 1-10000 credits
173-
174169
# - Background Writer -
175170

176171
#bgwriter_delay = 200ms # 10-10000ms between rounds
177172
#bgwriter_lru_maxpages = 100 # max buffers written/round, 0 disables
178173
#bgwriter_lru_multiplier = 2.0 # 0-10.0 multiplier on buffers scanned/round
179174
#bgwriter_flush_after = 0 # measured in pages, 0 disables
180175

181-
# - Asynchronous Behavior -
176+
# - I/O -
182177

183178
#backend_flush_after = 0 # measured in pages, 0 disables
184-
#effective_io_concurrency = 0 # 1-1000; 0 disables prefetching
185-
#io_combine_limit = 128kB # usually 1-32 blocks (depends on OS)
186-
#maintenance_io_concurrency = 10 # 1-1000; 0 disables prefetching
179+
#effective_io_concurrency = 16 # 1-1000; 0 disables issuing multiple simultaneous IO requests
180+
#maintenance_io_concurrency = 16 # 1-1000; same as effective_io_concurrency
181+
#io_max_combine_limit = 128kB # usually 1-128 blocks (depends on OS)
182+
# (change requires restart)
183+
#io_combine_limit = 128kB # usually 1-128 blocks (depends on OS)
184+
185+
#io_method = worker # worker, io_uring, sync
186+
# (change requires restart)
187+
#io_max_concurrency = -1 # Max number of IOs that one process
188+
# can execute simultaneously
189+
# -1 sets based on shared_buffers
190+
# (change requires restart)
191+
#io_workers = 3 # 1-32;
192+
193+
# - Worker Processes -
194+
187195
#max_worker_processes = 8
188196
#max_parallel_workers_per_gather = 2 # limited by max_parallel_workers
189197
#max_parallel_maintenance_workers = 2 # limited by max_parallel_workers
@@ -295,6 +303,7 @@ min_wal_size = 80MB
295303
#max_replication_slots = 10 # max number of replication slots
296304
#wal_keep_size = 0 # in megabytes; 0 disables
297305
#max_slot_wal_keep_size = -1 # in megabytes; -1 disables
306+
#idle_replication_slot_timeout = 0 # in seconds; 0 disables
298307
#wal_sender_timeout = 60s # in milliseconds; 0 disables
299308
#track_commit_timestamp = off # collect timestamp of transaction commit
300309

@@ -340,6 +349,8 @@ min_wal_size = 80MB
340349

341350
# These settings are ignored on a publisher.
342351

352+
#max_active_replication_origins = 10 # max number of active replication origins
353+
# (change requires restart)
343354
#max_logical_replication_workers = 4 # taken from max_worker_processes
344355
#max_sync_workers_per_subscription = 2 # taken from max_logical_replication_workers
345356
#max_parallel_apply_workers_per_subscription = 2 # taken from max_logical_replication_workers
@@ -372,6 +383,8 @@ min_wal_size = 80MB
372383
#enable_sort = on
373384
#enable_tidscan = on
374385
#enable_group_by_reordering = on
386+
#enable_distinct_reordering = on
387+
#enable_self_join_elimination = on
375388

376389
# - Planner Cost Constants -
377390

@@ -533,9 +546,11 @@ log_min_messages = {log_level} # values in order of decreasing
533546
# actions running at least this number
534547
# of milliseconds.
535548
#log_checkpoints = on
536-
#log_connections = off
549+
#log_connections = '' # log aspects of connection setup
550+
# options include receipt, authentication, authorization,
551+
# setup_durations, and all to log all of these aspects
537552
#log_disconnections = off
538-
#log_duration = off
553+
#log_duration = off # log statement duration
539554
#log_error_verbosity = default # terse, default, or verbose messages
540555
#log_hostname = off
541556
log_line_prefix = '%m [%p] ' # special values:
@@ -544,6 +559,7 @@ log_line_prefix = '%m [%p] ' # special values:
544559
# %d = database name
545560
# %r = remote host and port
546561
# %h = remote host
562+
# %L = local address
547563
# %b = backend type
548564
# %p = process ID
549565
# %P = process ID of parallel group leader
@@ -563,6 +579,7 @@ log_line_prefix = '%m [%p] ' # special values:
563579
# %% = '%'
564580
# e.g. '<%u%%%d> '
565581
#log_lock_waits = off # log lock waits >= deadlock_timeout
582+
#log_lock_failures = off # log lock failures
566583
#log_recovery_conflict_waits = off # log standby recovery conflict waits
567584
# >= deadlock_timeout
568585
#log_parameter_max_length = -1 # when logging statements, limit logged
@@ -594,6 +611,7 @@ log_timezone = '{time_zone}'
594611
#track_activities = on
595612
#track_activity_query_size = 1024
596613
track_counts = on
614+
#track_cost_delay_timing = off
597615
#track_io_timing = off
598616
#track_wal_io_timing = off
599617
#track_functions = none # none, pl, all
@@ -607,36 +625,62 @@ track_counts = on
607625
#log_planner_stats = off
608626
#log_executor_stats = off
609627

610-
# -----------------------------------------------------------------------------------
611-
# AUTOVACUUM
612-
# -----------------------------------------------------------------------------------
628+
#------------------------------------------------------------------------------
629+
# VACUUMING
630+
#------------------------------------------------------------------------------
631+
632+
# - Automatic Vacuuming -
613633

614634
autovacuum = on # Enable autovacuum subprocess? 'on'
615635
# requires track_counts to also be on.
636+
autovacuum_worker_slots = 16 # autovacuum worker slots to allocate
637+
# (change requires restart)
616638
#autovacuum_max_workers = 3 # max number of autovacuum subprocesses
617639
#autovacuum_naptime = 1min # time between autovacuum runs
618-
#autovacuum_vacuum_threshold = 50 # min number of row updates before
619-
# vacuum
640+
#autovacuum_vacuum_threshold = 50 # min number of row updates before vacuum
620641
#autovacuum_vacuum_insert_threshold = 1000 # min number of row inserts
621-
# before vacuum; -1 disables insert
622-
# vacuums
623-
#autovacuum_analyze_threshold = 50 # min number of row updates before
624-
# analyze
625-
#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
626-
#autovacuum_vacuum_insert_scale_factor = 0.2 # fraction of inserts over table
627-
# size before insert vacuum
628-
#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
642+
# before vacuum; -1 disables insert vacuums
643+
#autovacuum_analyze_threshold = 50 # min number of row updates before analyze
644+
#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
645+
#autovacuum_vacuum_insert_scale_factor = 0.2 # fraction of unfrozen pages
646+
# before insert vacuum
647+
#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
648+
#autovacuum_vacuum_max_threshold = 100000000 # max number of row updates
649+
# before vacuum; -1 disables max threshold
629650
#autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
630-
631-
#autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age
651+
# (change requires restart)
652+
#autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age
632653
# before forced vacuum
654+
# (change requires restart)
633655
#autovacuum_vacuum_cost_delay = 2ms # default vacuum cost delay for
634656
# autovacuum, in milliseconds;
635657
# -1 means use vacuum_cost_delay
636658
#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
637659
# autovacuum, -1 means use
638660
# vacuum_cost_limit
639661

662+
# - Cost-Based Vacuum Delay -
663+
664+
#vacuum_cost_delay = 0 # 0-100 milliseconds (0 disables)
665+
#vacuum_cost_page_hit = 1 # 0-10000 credits
666+
#vacuum_cost_page_miss = 2 # 0-10000 credits
667+
#vacuum_cost_page_dirty = 20 # 0-10000 credits
668+
#vacuum_cost_limit = 200 # 1-10000 credits
669+
670+
# - Default Behavior -
671+
672+
#vacuum_truncate = on # enable truncation after vacuum
673+
674+
# - Freezing -
675+
676+
#vacuum_freeze_table_age = 150000000
677+
#vacuum_freeze_min_age = 50000000
678+
#vacuum_failsafe_age = 1600000000
679+
#vacuum_multixact_freeze_table_age = 150000000
680+
#vacuum_multixact_freeze_min_age = 5000000
681+
#vacuum_multixact_failsafe_age = 1600000000
682+
#vacuum_max_eager_freeze_failure_rate = 0.03 # 0 disables eager scanning
683+
640684
# -----------------------------------------------------------------------------------
641685
# CLIENT CONNECTION DEFAULTS
642686
# -----------------------------------------------------------------------------------
@@ -670,12 +714,6 @@ autovacuum = on # Enable autovacuum subprocess? 'on
670714
#lock_timeout = 0 # in milliseconds, 0 is disabled
671715
#idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled
672716
#idle_session_timeout = 0 # in milliseconds, 0 is disabled
673-
#vacuum_freeze_table_age = 150000000
674-
#vacuum_freeze_min_age = 50000000
675-
#vacuum_failsafe_age = 1600000000
676-
#vacuum_multixact_freeze_table_age = 150000000
677-
#vacuum_multixact_freeze_min_age = 5000000
678-
#vacuum_multixact_failsafe_age = 1600000000
679717
#bytea_output = 'hex' # hex, escape
680718
#xmlbinary = 'base64'
681719
#xmloption = 'content'
@@ -722,6 +760,7 @@ default_text_search_config = 'pg_catalog.russian'
722760
# - Other Defaults -
723761

724762
#dynamic_library_path = '$libdir'
763+
#extension_control_path = '$system'
725764
#gin_fuzzy_search_limit = 0
726765

727766
# -----------------------------------------------------------------------------------

resources/modules/RabbitMQ-3.13/ospanel_data/default/templates/rabbitmq.conf

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ listeners.tcp.default = {ip}:{port}
116116
# ssl_options.secure_renegotiate = true
117117
#
118118
## Limits what TLS versions the server enables for client TLS
119-
## connections. See https://www.rabbitmq.com/docs/ssl#tls-versions for details.
119+
## connections. See https://www.rabbitmq.com/ssl.html#tls-versions for details.
120120
##
121121
## Cutting edge TLS version which requires recent client runtime
122122
## versions and has no cipher suite in common with earlier TLS versions.
@@ -131,7 +131,7 @@ listeners.tcp.default = {ip}:{port}
131131
## from connecting.
132132
## If TLSv1.3 is enabled and cipher suites are overridden, TLSv1.3-specific
133133
## cipher suites must also be explicitly enabled.
134-
## See https://www.rabbitmq.com/docs/ssl#cipher-suites and https://wiki.openssl.org/index.php/TLS1.3#Ciphersuites
134+
## See https://www.rabbitmq.com/ssl.html#cipher-suites and https://wiki.openssl.org/index.php/TLS1.3#Ciphersuites
135135
## for details.
136136
#
137137
## The example below uses TLSv1.3 cipher suites only
@@ -268,7 +268,7 @@ listeners.tcp.default = {ip}:{port}
268268
## Loading Definitions
269269
## ====================
270270
##
271-
## Relevant documentation: https://www.rabbitmq.com/docs/definitions#import-on-boot
271+
## Relevant documentation: https://www.rabbitmq.com/definitions.html#import-on-boot
272272
##
273273
## To import definitions from a local file on node boot, set the
274274
## load_definitions config key to a path of a previously exported
@@ -380,7 +380,7 @@ listeners.tcp.default = {ip}:{port}
380380

381381
## Memory-based Flow Control threshold.
382382
##
383-
# vm_memory_high_watermark.relative = 0.6
383+
# vm_memory_high_watermark.relative = 0.4
384384

385385
## Alternatively, we can set a limit (in bytes) of RAM used by the node.
386386
##
@@ -500,7 +500,7 @@ listeners.tcp.default = {ip}:{port}
500500
## Make clustering happen *automatically* at startup. Only applied
501501
## to nodes that have just been reset or started for the first time.
502502
##
503-
## Relevant doc guide: https://www.rabbitmq.com/docs//cluster-formation
503+
## Relevant doc guide: https://rabbitmq.com//cluster-formation.html
504504
##
505505

506506
# cluster_formation.peer_discovery_backend = rabbit_peer_discovery_classic_config
@@ -667,7 +667,7 @@ listeners.tcp.default = {ip}:{port}
667667
## Inter-node communication port range.
668668
## The parameters inet_dist_listen_min and inet_dist_listen_max
669669
## can be configured in the classic config format only.
670-
## Related doc guide: https://www.rabbitmq.com/docs/networking#epmd-inet-dist-port-range.
670+
## Related doc guide: https://www.rabbitmq.com/networking.html#epmd-inet-dist-port-range.
671671

672672

673673
## ----------------------------------------------------------------------------
@@ -970,6 +970,10 @@ listeners.tcp.default = {ip}:{port}
970970
##
971971
# amqp1_0.default_user = guest
972972

973+
## Enable protocol strict mode. See the README for more information.
974+
##
975+
# amqp1_0.protocol_strict_mode = false
976+
973977
## Logging settings.
974978
##
975979
## See https://www.rabbitmq.com/docs/logging for details.
@@ -1011,6 +1015,34 @@ log.exchange = false
10111015

10121016
log.exchange.level = {log_level}
10131017

1018+
## File size-based log rotation
1019+
1020+
## Note that `log.file.rotation.size` cannot be combined with `log.file.rotation.date`,
1021+
## the two options are mutually exclusive.
1022+
1023+
## rotate when the file reaches 10 MiB
1024+
# log.file.rotation.size = 10485760
1025+
1026+
## keep up to 5 archived log files in addition to the current one
1027+
# log.file.rotation.count = 5
1028+
1029+
## compress the archived logs
1030+
# log.file.rotation.compress = true
1031+
1032+
1033+
## Date-based log rotation
1034+
1035+
## Note that `log.file.rotation.date` cannot be combined with `log.file.rotation.size`,
1036+
## the two options are mutually exclusive.
1037+
1038+
## rotate every night at midnight
1039+
# log.file.rotation.date = $D0
1040+
1041+
## keep up to 5 archived log files in addition to the current one
1042+
# log.file.rotation.count = 5
1043+
1044+
## compress the archived logs
1045+
# log.file.rotation.compress = true
10141046

10151047

10161048
## ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)