Skip to content

Commit

Permalink
Add Missing Database Configs for Postgresql and MYSQL (#755)
Browse files Browse the repository at this point in the history
* Added Missing Database Configs for Postgresql and MYSQL

* Update databases.go

Co-authored-by: Anna Lushnikova <[email protected]>

* max_failover_replication_time_lag is changed from uint64 to int64

* update the configs

---------

Co-authored-by: v.sharma <[email protected]>
Co-authored-by: Anna Lushnikova <[email protected]>
  • Loading branch information
3 people authored Nov 13, 2024
1 parent ebeee16 commit 96a7737
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,9 @@ type PostgreSQLConfig struct {
BackupMinute *int `json:"backup_minute,omitempty"`
WorkMem *int `json:"work_mem,omitempty"`
TimeScaleDB *PostgreSQLTimeScaleDBConfig `json:"timescaledb,omitempty"`
SynchronousReplication *string `json:"synchronous_replication,omitempty"`
StatMonitorEnable *bool `json:"stat_monitor_enable,omitempty"`
MaxFailoverReplicationTimeLag *int64 `json:"max_failover_replication_time_lag,omitempty"`
}

// PostgreSQLBouncerConfig configuration
Expand Down Expand Up @@ -653,6 +656,13 @@ type MySQLConfig struct {
BackupHour *int `json:"backup_hour,omitempty"`
BackupMinute *int `json:"backup_minute,omitempty"`
BinlogRetentionPeriod *int `json:"binlog_retention_period,omitempty"`
InnodbChangeBufferMaxSize *int `json:"innodb_change_buffer_max_size,omitempty"`
InnodbFlushNeighbors *int `json:"innodb_flush_neighbors,omitempty"`
InnodbReadIoThreads *int `json:"innodb_read_io_threads,omitempty"`
InnodbThreadConcurrency *int `json:"innodb_thread_concurrency,omitempty"`
InnodbWriteIoThreads *int `json:"innodb_write_io_threads,omitempty"`
NetBufferLength *int `json:"net_buffer_length,omitempty"`
LogOutput *string `json:"log_output,omitempty"`
}

// MongoDBConfig holds advanced configurations for MongoDB database clusters.
Expand Down

0 comments on commit 96a7737

Please sign in to comment.