Skip to content

Commit

Permalink
Merge pull request #9579 from planetscale/local-example-add-durabilit…
Browse files Browse the repository at this point in the history
…y-flag

Add durability flag in local examples
  • Loading branch information
deepthi authored Jan 28, 2022
2 parents e5aa4d5 + b08ac5b commit 51639e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/legacy_local/scripts/vtctld-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ vtctld \
-file_backup_storage_root $VTDATAROOT/backups \
-log_dir $VTDATAROOT/tmp \
-port $vtctld_web_port \
-durability_policy 'semi_sync' \
-grpc_port $grpc_port \
-pid_file $VTDATAROOT/tmp/vtctld.pid \
> $VTDATAROOT/tmp/vtctld.out 2>&1 &
2 changes: 1 addition & 1 deletion examples/local/101_initial_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ for i in 100 101 102; do
done

# set one of the replicas to primary
vtctldclient InitShardPrimary --force commerce/0 zone1-100
vtctldclient PlannedReparentShard commerce/0 --new-primary zone1-100

# create the schema
vtctlclient ApplySchema -sql-file create_commerce_schema.sql commerce
Expand Down
1 change: 1 addition & 0 deletions examples/local/scripts/vtctld-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ vtctld \
-file_backup_storage_root $VTDATAROOT/backups \
-log_dir $VTDATAROOT/tmp \
-port $vtctld_web_port \
-durability_policy 'semi_sync' \
-grpc_port $grpc_port \
-pid_file $VTDATAROOT/tmp/vtctld.pid \
> $VTDATAROOT/tmp/vtctld.out 2>&1 &

0 comments on commit 51639e8

Please sign in to comment.