Skip to content

Commit

Permalink
chore: upgrade apecloud postgresql to v1.0 api (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
kizuna-lek authored Nov 15, 2024
1 parent 4fc62da commit bab8489
Show file tree
Hide file tree
Showing 13 changed files with 716 additions and 248 deletions.
2 changes: 1 addition & 1 deletion addons-cluster/apecloud-postgresql/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
topology: apecloud-postgresql
componentSpecs:
- name: postgresql
componentDef: apecloud-postgresql14
serviceVersion: {{ .Values.version }}
{{- include "kblib.componentMonitor" . | indent 6 }}
replicas: {{ include "apecloud-postgresql-cluster.replicas" . }}
serviceAccountName: {{ include "kblib.serviceAccountName" . }}
2 changes: 1 addition & 1 deletion addons-cluster/apecloud-postgresql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## @param version PostgreSQL cluster version
##
version: ac-postgresql-14.10
version: 14.11.0

## @param mode postgresql cluster topology mode, standalone, raftGroup
##
Expand Down
346 changes: 309 additions & 37 deletions addons/apecloud-postgresql/config/pg14-config-effect-scope.yaml
Original file line number Diff line number Diff line change
@@ -1,60 +1,332 @@
# Patroni bootstrap parameters
staticParameters:
- shared_buffers
# postmaster
- archive_mode
- autovacuum_freeze_max_age
- autovacuum_max_workers
- autovacuum_multixact_freeze_max_age
- bonjour
- bonjour_name
- cluster_name
- config_file
- data_directory
- data_sync_retry
- dynamic_shared_memory_type
- event_source
- external_pid_file
- hba_file
- hot_standby
- huge_pages
- huge_page_size
- ident_file
- ignore_invalid_pages
- jit_provider
- listen_addresses
- logging_collector
- log_destination
- log_directory
- log_filename
- log_file_mode
- log_rotation_age
- log_truncate_on_rotation
- ssl
- ssl_ca_file
- ssl_crl_file
- ssl_cert_file
- ssl_key_file
- max_connections
- max_files_per_process
- max_locks_per_transaction
- max_logical_replication_workers
- max_pred_locks_per_transaction
- max_prepared_transactions
- max_replication_slots
- max_wal_senders
- max_worker_processes
- min_dynamic_shared_memory
- old_snapshot_threshold
- port
- recovery_target
- recovery_target_action
- recovery_target_inclusive
- recovery_target_lsn
- recovery_target_name
- recovery_target_time
- recovery_target_timeline
- recovery_target_xid
- shared_buffers
- shared_memory_type
- shared_preload_libraries
- bg_mon.listen_address
- bg_mon.history_buckets
- pg_stat_statements.track_utility
- extwlist.extensions
- extwlist.custom_path
- superuser_reserved_connections
- track_activity_query_size
- track_commit_timestamp
- unix_socket_directories
- unix_socket_group
- unix_socket_permissions
- wal_buffers
- wal_level
- wal_log_hints

immutableParameters:
dynamicParameters:
# sighup
- archive_cleanup_command
- archive_command
- archive_timeout
- backtrace_functions
- config_file
- cron.use_background_workers
- data_directory
- authentication_timeout
- autovacuum
- autovacuum_analyze_scale_factor
- autovacuum_analyze_threshold
- autovacuum_naptime
- autovacuum_vacuum_cost_delay
- autovacuum_vacuum_cost_limit
- autovacuum_vacuum_insert_scale_factor
- autovacuum_vacuum_insert_threshold
- autovacuum_vacuum_scale_factor
- autovacuum_vacuum_threshold
- autovacuum_work_mem
- bgwriter_delay
- bgwriter_flush_after
- bgwriter_lru_maxpages
- bgwriter_lru_multiplier
- checkpoint_completion_target
- checkpoint_flush_after
- checkpoint_timeout
- checkpoint_warning
- db_user_namespace
- exit_on_error
- fsync
- full_page_writes
- hba_file
- ident_file
- ignore_invalid_pages
- listen_addresses
- lo_compat_privileges
- hot_standby_feedback
- krb_caseins_users
- krb_server_keyfile
- log_autovacuum_min_duration
- log_checkpoints
- log_destination
- log_directory
- log_file_mode
- logging_collector
- log_filename
- log_hostname
- log_line_prefix
- log_recovery_conflict_waits
- log_rotation_age
- log_rotation_size
- log_timezone
- log_truncate_on_rotation
- port
- rds.max_tcp_buffers
- max_pred_locks_per_page
- max_pred_locks_per_relation
- max_slot_wal_keep_size
- max_standby_archive_delay
- max_standby_streaming_delay
- max_sync_workers_per_subscription
- max_wal_size
- min_wal_size
- pre_auth_delay
- primary_conninfo
- primary_slot_name
- promote_trigger_file
- recovery_end_command
- recovery_init_sync_method
- recovery_min_apply_delay
- remove_temp_files_after_crash
- restart_after_crash
- restore_command
- ssl
- ssl_ca_file
- ssl_cert_file
- ssl_ciphers
- ssl_crl_dir
- ssl_crl_file
- ssl_dh_params_file
- ssl_ecdh_curve
- ssl_key_file
- ssl_max_protocol_version
- ssl_min_protocol_version
- ssl_passphrase_command
- ssl_passphrase_command_supports_reload
- ssl_prefer_server_ciphers
- stats_temp_directory
- superuser_reserved_connections
- unix_socket_directories
- unix_socket_group
- unix_socket_permissions
- update_process_title
- synchronous_standby_names
- syslog_facility
- syslog_ident
- syslog_sequence_numbers
- syslog_split_messages
- trace_recovery_messages
- vacuum_defer_cleanup_age
- wal_keep_size
- wal_receiver_create_temp_slot
- wal_receiver_status_interval
- wal_receiver_timeout
- wal_retrieve_retry_interval
- wal_sync_method
- wal_writer_delay
- wal_writer_flush_after
# backend
- ignore_system_indexes
- post_auth_delay
# user
- application_name
- array_nulls
- backend_flush_after
- backslash_quote
- bytea_output
- check_function_bodies
- client_connection_check_interval
- client_encoding
- client_min_messages
- commit_siblings
- constraint_exclusion
- cpu_index_tuple_cost
- cpu_operator_cost
- cpu_tuple_cost
- cursor_tuple_fraction
- DateStyle
- debug_pretty_print
- debug_print_parse
- debug_print_plan
- debug_print_rewritten
- default_statistics_target
- default_table_access_method
- default_tablespace
- default_text_search_config
- default_toast_compression
- default_transaction_deferrable
- default_transaction_isolation
- default_transaction_read_only
- effective_cache_size
- effective_io_concurrency
- enable_async_append
- enable_bitmapscan
- enable_gathermerge
- enable_hashagg
- enable_hashjoin
- enable_incremental_sort
- enable_indexonlyscan
- enable_indexscan
- enable_material
- enable_memoize
- enable_mergejoin
- enable_nestloop
- enable_parallel_append
- enable_parallel_hash
- enable_partition_pruning
- enable_partitionwise_aggregate
- enable_partitionwise_join
- enable_seqscan
- enable_sort
- enable_tidscan
- escape_string_warning
- exit_on_error
- extra_float_digits
- force_parallel_mode
- from_collapse_limit
- geqo
- geqo_effort
- geqo_generations
- geqo_pool_size
- geqo_seed
- geqo_selection_bias
- geqo_threshold
- gin_fuzzy_search_limit
- gin_pending_list_limit
- hash_mem_multiplier
- idle_in_transaction_session_timeout
- idle_session_timeout
- IntervalStyle
- jit
- jit_above_cost
- jit_expressions
- jit_inline_above_cost
- jit_optimize_above_cost
- jit_tuple_deforming
- join_collapse_limit
- lc_monetary
- lc_numeric
- lc_time
- local_preload_libraries
- lock_timeout
- logical_decoding_work_mem
- log_parameter_max_length_on_error
- maintenance_io_concurrency
- maintenance_work_mem
- max_parallel_maintenance_workers
- max_parallel_workers
- max_parallel_workers_per_gather
- min_parallel_index_scan_size
- min_parallel_table_scan_size
- parallel_leader_participation
- parallel_setup_cost
- parallel_tuple_cost
- password_encryption
- plan_cache_mode
- quote_all_identifiers
- random_page_cost
- restrict_nonsystem_relation_kind
- row_security
- search_path
- seq_page_cost
- standard_conforming_strings
- statement_timeout
- synchronize_seqscans
- synchronous_commit
- tcp_keepalives_count
- tcp_keepalives_idle
- tcp_keepalives_interval
- tcp_user_timeout
- temp_buffers
- temp_tablespaces
- TimeZone
- timezone_abbreviations
- trace_notify
- trace_sort
- transaction_deferrable
- transaction_isolation
- transaction_read_only
- transform_null_equals
- vacuum_cost_delay
- vacuum_cost_limit
- vacuum_cost_page_dirty
- vacuum_cost_page_hit
- vacuum_cost_page_miss
- vacuum_failsafe_age
- vacuum_freeze_min_age
- vacuum_freeze_table_age
- vacuum_multixact_failsafe_age
- vacuum_multixact_freeze_min_age
- vacuum_multixact_freeze_table_age
- wal_sender_timeout
- wal_skip_threshold
- work_mem
- xmlbinary
- xmloption
# superuser
- allow_in_place_tablespaces
- allow_system_table_mods
- backtrace_functions
- commit_delay
- compute_query_id
- deadlock_timeout
- debug_discard_caches
- dynamic_library_path
- ignore_checksum_failure
- jit_dump_bitcode
- lc_messages
- lo_compat_privileges
- log_duration
- log_error_verbosity
- log_executor_stats
- log_lock_waits
- log_min_duration_sample
- log_min_duration_statement
- log_min_error_statement
- log_min_messages
- log_parameter_max_length
- log_parser_stats
- log_planner_stats
- log_replication_commands
- log_statement
- log_statement_sample_rate
- log_statement_stats
- log_temp_files
- log_transaction_sample_rate
- max_stack_depth
- session_preload_libraries
- session_replication_role
- temp_file_limit
- track_activities
- track_counts
- track_functions
- track_io_timing
- track_wal_io_timing
- update_process_title
- wal_compression
- wal_consistency_checking
- wal_init_zero
- wal_recycle
- zero_damaged_pages
Loading

0 comments on commit bab8489

Please sign in to comment.