Skip to content

Commit

Permalink
Remove mysql parameters from VTOrc setup (#16996)
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <[email protected]>
  • Loading branch information
GuptaManan100 authored Oct 22, 2024
1 parent ba129c7 commit e598a87
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 24 deletions.
4 changes: 0 additions & 4 deletions config/vtorc/default.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"Debug": true,
"MySQLTopologyUser": "orc_client_user",
"MySQLTopologyPassword": "orc_client_user_password",
"MySQLReplicaUser": "vt_repl",
"MySQLReplicaPassword": "",
"RecoveryPeriodBlockSeconds": 5
}
4 changes: 0 additions & 4 deletions examples/common/vtorc/config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"MySQLTopologyUser": "orc_client_user",
"MySQLTopologyPassword": "orc_client_user_password",
"MySQLReplicaUser": "vt_repl",
"MySQLReplicaPassword": "",
"RecoveryPeriodBlockSeconds": 1,
"InstancePollSeconds": 1
}
4 changes: 0 additions & 4 deletions examples/compose/vtorc-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ if [ $external = 1 ] ; then
# This can be overridden by passing VTORC_CONFIG env variable
echo "Updating $config..."
cp /vt/vtorc/default.json /vt/vtorc/tmp.json
sed -i '/MySQLTopologyUser/c\ \"MySQLTopologyUser\" : \"'"$DB_USER"'\",' /vt/vtorc/tmp.json
sed -i '/MySQLTopologyPassword/c\ \"MySQLTopologyPassword\" : \"'"$DB_PASS"'\",' /vt/vtorc/tmp.json
sed -i '/MySQLReplicaUser/c\ \"MySQLReplicaUser\" : \"'"$DB_USER"'\",' /vt/vtorc/tmp.json
sed -i '/MySQLReplicaPassword/c\ \"MySQLReplicaPassword\" : \"'"$DB_PASS"'\",' /vt/vtorc/tmp.json
cat /vt/vtorc/tmp.json
cp /vt/vtorc/tmp.json /vt/vtorc/config.json
else
Expand Down
4 changes: 0 additions & 4 deletions examples/compose/vtorc/default.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"Debug": true,
"EnableSyslog": false,
"MySQLTopologyUser": "orc_client_user",
"MySQLTopologyPassword": "orc_client_user_password",
"MySQLReplicaUser": "vt_repl",
"MySQLReplicaPassword": "",
"BackendDB": "sqlite",
"SQLite3DataFile": "/tmp/vtorc.sqlite3",
"RecoverMasterClusterFilters": ["*"],
Expand Down
8 changes: 0 additions & 8 deletions go/test/endtoend/cluster/vtorc_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ type VTOrcProcess struct {
type VTOrcConfiguration struct {
Debug bool
ListenAddress string
MySQLTopologyUser string
MySQLTopologyPassword string
MySQLReplicaUser string
MySQLReplicaPassword string
RecoveryPeriodBlockSeconds int
TopologyRefreshSeconds int `json:",omitempty"`
PreventCrossDataCenterPrimaryFailover bool `json:",omitempty"`
Expand All @@ -71,10 +67,6 @@ func (config *VTOrcConfiguration) ToJSONString() string {

func (config *VTOrcConfiguration) AddDefaults(webPort int) {
config.Debug = true
config.MySQLTopologyUser = "orc_client_user"
config.MySQLTopologyPassword = "orc_client_user_password"
config.MySQLReplicaUser = "vt_repl"
config.MySQLReplicaPassword = ""
if config.RecoveryPeriodBlockSeconds == 0 {
config.RecoveryPeriodBlockSeconds = 1
}
Expand Down

0 comments on commit e598a87

Please sign in to comment.