-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add database config actions * Update rubocop * Fix dot attributes and add pgbouncer/timescaledb as objects * Fix constant autoloading --------- Co-authored-by: Ben Tranter <[email protected]>
- Loading branch information
1 parent
c434949
commit 37a3b1d
Showing
23 changed files
with
918 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# frozen_string_literal: true | ||
|
||
module DropletKit | ||
class DatabaseKafkaConfigMapping | ||
include Kartograph::DSL | ||
|
||
kartograph do | ||
mapping DatabaseKafkaConfig | ||
root_key singular: 'config', scopes: %i[read update] | ||
|
||
scoped :read, :update do | ||
%i[compression_type | ||
group_initial_rebalance_delay_ms | ||
group_min_session_timeout_ms | ||
group_max_session_timeout_ms | ||
connections_max_idle_ms | ||
max_incremental_fetch_session_cache_slots | ||
message_max_bytes | ||
offsets_retention_minutes | ||
log_cleaner_delete_retention_ms | ||
log_cleaner_min_cleanable_ratio | ||
log_cleaner_max_compaction_lag_ms | ||
log_cleaner_min_compaction_lag_ms | ||
log_cleanup_policy | ||
log_flush_interval_messages | ||
log_flush_interval_ms | ||
log_index_interval_bytes | ||
log_index_size_max_bytes | ||
log_message_downconversion_enable | ||
log_message_timestamp_type | ||
log_message_timestamp_difference_max_ms | ||
log_preallocate | ||
log_retention_bytes | ||
log_retention_hours | ||
log_retention_ms | ||
log_roll_jitter_ms | ||
log_roll_ms | ||
log_segment_bytes | ||
log_segment_delete_delay_ms | ||
auto_create_topics_enable | ||
min_insync_replicas | ||
num_partitions | ||
default_replication_factor | ||
replica_fetch_max_bytes | ||
replica_fetch_response_max_bytes | ||
max_connections_per_ip | ||
producer_purgatory_purge_interval_requests | ||
socket_request_max_bytes | ||
transaction_state_log_segment_bytes | ||
transaction_remove_expired_transaction_cleanup_interval_ms].each do |key| | ||
property(key) | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
|
||
module DropletKit | ||
class DatabaseMongoConfigMapping | ||
include Kartograph::DSL | ||
|
||
kartograph do | ||
mapping DatabaseMongoConfig | ||
root_key singular: 'config', scopes: %i[read update] | ||
|
||
scoped :read, :update do | ||
%i[default_read_concern | ||
default_write_concern | ||
transaction_lifetime_limit_seconds | ||
slow_op_threshold_ms | ||
verbosity].each do |key| | ||
property(key) | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# frozen_string_literal: true | ||
|
||
module DropletKit | ||
class DatabaseMysqlConfigMapping | ||
include Kartograph::DSL | ||
|
||
kartograph do | ||
mapping DatabaseMysqlConfig | ||
root_key singular: 'config', scopes: %i[read update] | ||
|
||
scoped :read, :update do | ||
%i[backup_hour | ||
backup_minute | ||
sql_mode | ||
connect_timeout | ||
default_time_zone | ||
group_concat_max_len | ||
information_schema_stats_expiry | ||
innodb_ft_min_token_size | ||
innodb_ft_server_stopword_table | ||
innodb_lock_wait_timeout | ||
innodb_log_buffer_size | ||
innodb_online_alter_log_max_size | ||
innodb_print_all_deadlocks | ||
innodb_rollback_on_timeout | ||
interactive_timeout | ||
internal_tmp_mem_storage_engine | ||
net_read_timeout | ||
net_write_timeout | ||
sql_require_primary_key | ||
wait_timeout | ||
max_allowed_packet | ||
max_heap_table_size | ||
sort_buffer_size | ||
tmp_table_size | ||
slow_query_log | ||
long_query_time | ||
binlog_retention_period | ||
innodb_change_buffer_max_size | ||
innodb_flush_neighbors | ||
innodb_read_io_threads | ||
innodb_write_io_threads | ||
innodb_thread_concurrency | ||
net_buffer_length].each do |key| | ||
property(key) | ||
end | ||
end | ||
end | ||
end | ||
end |
55 changes: 55 additions & 0 deletions
55
lib/droplet_kit/mappings/database_opensearch_config_mapping.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# frozen_string_literal: true | ||
|
||
module DropletKit | ||
class DatabaseOpensearchConfigMapping | ||
include Kartograph::DSL | ||
|
||
kartograph do | ||
mapping DatabaseOpensearchConfig | ||
root_key singular: 'config', scopes: %i[read update] | ||
|
||
scoped :read, :update do | ||
%i[http_max_content_length_bytes | ||
http_max_header_size_bytes | ||
http_max_initial_line_length_bytes | ||
indices_query_bool_max_clause_count | ||
indices_fielddata_cache_size_percentage | ||
indices_memory_index_buffer_size_percentage | ||
indices_memory_min_index_buffer_size_mb | ||
indices_memory_max_index_buffer_size_mb | ||
indices_queries_cache_size_percentage | ||
indices_recovery_max_mb_per_sec | ||
indices_recovery_max_concurrent_file_chunks | ||
thread_pool_search_size | ||
thread_pool_search_throttled_size | ||
thread_pool_get_size | ||
thread_pool_analyze_size | ||
thread_pool_write_size | ||
thread_pool_force_merge_size | ||
thread_pool_search_queue_size | ||
thread_pool_search_throttled_queue_size | ||
thread_pool_get_queue_size | ||
thread_pool_analyze_queue_size | ||
thread_pool_write_queue_size | ||
ism_enabled | ||
ism_history_enabled | ||
ism_history_max_age_hours | ||
ism_history_max_docs | ||
ism_history_rollover_check_period_hours | ||
ism_history_rollover_retention_period_days | ||
search_max_buckets | ||
action_auto_create_index_enabled | ||
enable_security_audit | ||
action_destructive_requires_name | ||
cluster_max_shards_per_node | ||
override_main_response_version | ||
script_max_compilations_rate | ||
cluster_routing_allocation_node_concurrent_recoveries | ||
reindex_remote_whitelist | ||
plugins_alerting_filter_by_backend_roles_enabled].each do |key| | ||
property(key) | ||
end | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.