Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
019d954
feat: remove configurations that aren't needed like raft and initiali…
GuptaManan100 Sep 22, 2022
1494236
feat: use waitreplicastimeout for all timeouts related to waiting for…
GuptaManan100 Sep 22, 2022
767d025
feat: remove agents in vtorc since we don't use them
GuptaManan100 Sep 22, 2022
e277579
feat: remove more unused configurations
GuptaManan100 Sep 22, 2022
79eb902
feat: cleanup post and pre processes that VTOrc doesn't intend to sup…
GuptaManan100 Sep 26, 2022
274fde3
feat: remove unused code and config for shell process
GuptaManan100 Sep 26, 2022
3b9e874
feat: remove unused configurations
GuptaManan100 Sep 26, 2022
facc51b
feat: convert flags to pflag architecture
GuptaManan100 Sep 26, 2022
98cfdf5
feat: remove cli flags which aren't required
GuptaManan100 Sep 26, 2022
2aafd0e
feat: remove more unused configs
GuptaManan100 Sep 26, 2022
aa59b9e
feat: remove the old UI of orchestrator and cleanup app and http pack…
GuptaManan100 Sep 28, 2022
c884b81
feat: remove web/vtorc files and fix Dockerfiles to not try to copy them
GuptaManan100 Sep 28, 2022
67c0eaa
feat: fix all the examples to not pass in the ListenAddress and not e…
GuptaManan100 Sep 28, 2022
c5c8c02
feat: remove raft code and command applier
GuptaManan100 Sep 28, 2022
d20ff0c
feat: remove unused code and configs
GuptaManan100 Sep 28, 2022
993b12c
feat: remove more unused code
GuptaManan100 Sep 28, 2022
e9bb8b1
feat: remove http configs that are no longer required
GuptaManan100 Sep 28, 2022
f625c9e
feat: remove more unused configs and dead code
GuptaManan100 Sep 28, 2022
5b94757
feat: remove more unused configs
GuptaManan100 Sep 28, 2022
ea179f6
feat: remove access tokens since they are unused
GuptaManan100 Sep 28, 2022
710b438
feat: remove RecoveryPeriodBlockMinutes which was only for backward c…
GuptaManan100 Sep 28, 2022
0c49434
feat: remove unused package
GuptaManan100 Sep 28, 2022
66a101c
feat: remove replicas in instance since they weren't used anywhere
GuptaManan100 Sep 29, 2022
ea0eb78
feat: copy over vtorc things that vtgr was using to remove vtgr's dep…
GuptaManan100 Sep 29, 2022
1d0365c
feat: change restart function to use tmc rpc calls
GuptaManan100 Sep 29, 2022
046eb71
feat: remove detection queries for vtorc since we read these from top…
GuptaManan100 Sep 29, 2022
66a5728
feat: improve read topology test to also verify the errantGTID set
GuptaManan100 Sep 29, 2022
0f45753
feat: use internal function to find difference in gtid sets instead o…
GuptaManan100 Sep 29, 2022
6183195
feat: remove population of group replication information
GuptaManan100 Sep 29, 2022
bfd104c
feat: remove configs related to connecting to MySQL instances since i…
GuptaManan100 Sep 29, 2022
e95f789
feat: remove code to connect to MySQL backend since VTOrc now only us…
GuptaManan100 Sep 29, 2022
dfac12d
cleanup: go mod tidy
GuptaManan100 Sep 29, 2022
a4773d1
feat: remove unused/redundant flags, we are down to 0 :)
GuptaManan100 Sep 29, 2022
61ee99e
feat: remove filtering configs
GuptaManan100 Sep 29, 2022
f49fc01
feat: remove write buffering and associated config parameters
GuptaManan100 Sep 29, 2022
ea2670a
feat: remove more miscellaneous configs
GuptaManan100 Sep 29, 2022
6a6fffb
feat: remove one more rejection parameter
GuptaManan100 Sep 29, 2022
8d51220
feat: move discovery queue parameters to be constants
GuptaManan100 Sep 30, 2022
fc068f8
feat: move some more configs to be constants
GuptaManan100 Sep 30, 2022
bc5124b
feat: add flags for all the configurations we have kept
GuptaManan100 Sep 30, 2022
fce9de4
Merge remote-tracking branch 'upstream/main' into vtorc-config-cleanup
GuptaManan100 Sep 30, 2022
3316a01
feat: fix imports in main.go
GuptaManan100 Sep 30, 2022
0a9a9d3
test: fix vtorc test output after so many changes
GuptaManan100 Sep 30, 2022
2cfc037
feat: add release-notes docs for config changes
GuptaManan100 Sep 30, 2022
a3da9b8
feat: remove index definitions for tables that are already deleted
GuptaManan100 Sep 30, 2022
cba757b
feat: add API removal documentation as well to release notes
GuptaManan100 Sep 30, 2022
1b042d7
feat: remove duplication of debug pages in release notes
GuptaManan100 Sep 30, 2022
57c3011
feat: use some flags in e2e test to verify they work
GuptaManan100 Sep 30, 2022
4829127
feat: use sliceVar for the flag definition of cluster_to_watch
GuptaManan100 Sep 30, 2022
111d8a5
Merge remote-tracking branch 'upstream/main' into vtorc-config-cleanup
GuptaManan100 Sep 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 81 additions & 51 deletions doc/releasenotes/15_0_0_summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,63 +266,93 @@ With this new `explain` format, you can get an output that is very similar to th

### VTOrc

#### Configuration Renames

VTOrc configurations that had `Orchestrator` as a substring have been renamed to have `VTOrc` instead. The old configuration won't
work in this release. So if backward compatibility is desired, then before upgrading it is suggested to duplicate the old configurations
and also set them for the new configurations.

VTOrc ignores the configurations that it doesn't understand. So new configurations can be added while running the previous release.
After the upgrade, the old configurations can be dropped.

| Old Configuration | New Configuration |
|:--------------------------------------:|:-------------------------------:|
| MySQLOrchestratorHost | MySQLVTOrcHost |
| MySQLOrchestratorMaxPoolConnections | MySQLVTOrcMaxPoolConnections |
| MySQLOrchestratorPort | MySQLVTOrcPort |
| MySQLOrchestratorDatabase | MySQLVTOrcDatabase |
| MySQLOrchestratorUser | MySQLVTOrcUser |
| MySQLOrchestratorPassword | MySQLVTOrcPassword |
| MySQLOrchestratorCredentialsConfigFile | MySQLVTOrcCredentialsConfigFile |
| MySQLOrchestratorSSLPrivateKeyFile | MySQLVTOrcSSLPrivateKeyFile |
| MySQLOrchestratorSSLCertFile | MySQLVTOrcSSLCertFile |
| MySQLOrchestratorSSLCAFile | MySQLVTOrcSSLCAFile |
| MySQLOrchestratorSSLSkipVerify | MySQLVTOrcSSLSkipVerify |
| MySQLOrchestratorUseMutualTLS | MySQLVTOrcUseMutualTLS |
| MySQLOrchestratorReadTimeoutSeconds | MySQLVTOrcReadTimeoutSeconds |
| MySQLOrchestratorRejectReadOnly | MySQLVTOrcRejectReadOnly |


For example, if you have the following configuration -
#### Old UI Removal and Replacement

The old UI that VTOrc inherited from `Orchestrator` has been removed. A replacement UI, more consistent with the other Vitess binaries has been created.
Comment on lines +269 to +271

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Release notes documentation is complete

In order to use the new UI, `--port` flag has to be provided.

Along with the UI, the old APIs have also been deprecated. However, some of them have been ported over to the new UI -

| Old API | New API | Additional notes |
|----------------------------------|----------------------------------|-----------------------------------------------------------------------|
| `/api/problems` | `/api/problems` | The new API also supports filtering using the keyspace and shard name |
| `/api/disable-global-recoveries` | `/api/disable-global-recoveries` | Functionally remains the same |
| `/api/enable-global-recoveries` | `/api/enable-global-recoveries` | Functionally remains the same |
| `/api/health` | `/debug/health` | Functionally remains the same |
| `/api/replication-analysis` | `/api/replication-analysis` | Functionally remains the same. Output is now JSON format. |

Apart from these APIs, we also now have `/debug/status`, `/debug/vars` and `/debug/liveness` available in the new UI.

#### Configuration Refactor and New Flags

Since VTOrc was forked from `Orchestrator`, it inherited a lot of configurations that don't make sense for the Vitess use-case.
All of such configurations have been removed.

VTOrc ignores the configurations that it doesn't understand. So old configurations can be kept around on upgrading and won't cause any issues.
They will just be ignored.

For all the configurations that are kept, flags have been added for them and the flags are the desired way to pass these configurations going forward.
The config file will be deprecated and removed in upcoming releases. The following is a list of all the configurations that are kept and the associated flags added.

| Configurations Kept | Flags Introduced |
|:-------------------------------------:|:-------------------------------------:|
| SQLite3DataFile | `--sqlite-data-file` |
| InstancePollSeconds | `--instance-poll-time` |
| SnapshotTopologiesIntervalHours | `--snapshot-topology-interval` |
| ReasonableReplicationLagSeconds | `--reasonable-replication-lag` |
| AuditLogFile | `--audit-file-location` |
| AuditToSyslog | `--audit-to-backend` |
| AuditToBackendDB | `--audit-to-syslog` |
| AuditPurgeDays | `--audit-purge-duration` |
| RecoveryPeriodBlockSeconds | `--recovery-period-block-duration` |
| PreventCrossDataCenterPrimaryFailover | `--prevent-cross-cell-failover` |
| LockShardTimeoutSeconds | `--lock-shard-timeout` |
| WaitReplicasTimeoutSeconds | `--wait-replicas-timeout` |
| TopoInformationRefreshSeconds | `--topo-information-refresh-duration` |
| RecoveryPollSeconds | `--recovery-poll-duration` |

Apart from configurations, some flags from VTOrc have also been removed -
- `sibling`
- `destination`
- `discovery`
- `skip-unresolve`
- `skip-unresolve-check`
- `noop`
- `binlog`
- `statement`
- `grab-election`
- `promotion-rule`
- `skip-continuous-registration`
- `enable-database-update`
- `ignore-raft-setup`
- `tag`

The ideal way to ensure backward compatibility is to remove the flags listed above while on the previous release. Then upgrade VTOrc.
After upgrading, remove the config file and instead pass the flags that are introduced.

#### Example Upgrade

If you are running VTOrc with the flags `--ignore-raft-setup --clusters_to_watch="ks/0" --config="path/to/config"` and the following configuration
```json
{
"MySQLOrchestratorHost": "host"
}
```
then, you should change it to
```json
{
"MySQLOrchestratorHost": "host",
"MySQLVTOrcHost": "host"
}
```
while still on the old release. After changing the configuration, you can upgrade vitess.
After upgrading, the old configurations can be dropped -
```json
{
"MySQLVTOrcHost": "host"
"Debug": true,
"ListenAddress": ":6922",
"MySQLTopologyUser": "orc_client_user",
"MySQLTopologyPassword": "orc_client_user_password",
"MySQLReplicaUser": "vt_repl",
"MySQLReplicaPassword": "",
"RecoveryPeriodBlockSeconds": 1,
"InstancePollSeconds": 1,
"PreventCrossDataCenterPrimaryFailover": true
}
```
First drop the flag `--ignore-raft-setup` while on the previous release. So, you'll be running VTOrc with `--clusters_to_watch="ks/0" --config="path/to/config"` and the same configuration listed above.

Now you can upgrade your VTOrc version continuing to use the same flags and configurations, and it will continue to work just the same. If you wish to use the new UI, then you can add the `--port` flag as well.

After upgrading, you can drop the configuration entirely and use the new flags like `--clusters_to_watch="ks/0" --recovery-period-block-duration=1s --instance-poll-time=1s --prevent-cross-cell-failover`

#### Default Configuration Files

The default files that VTOrc searches for configurations in have also changed from `"/etc/orchestrator.conf.json", "conf/orchestrator.conf.json", "orchestrator.conf.json"` to
`"/etc/vtorc.conf.json", "conf/vtorc.conf.json", "vtorc.conf.json"`.

#### Debug Pages in VTOrc

Like the other vitess binaries (`vtgate`, `vttablet`), now `vtorc` also takes a `--port` flag, on which it
displays the `/debug` pages including `/debug/status` and variables it tracks on `/debug/vars`.

This change is backward compatible and opt-in by default. Not specifying the flag works like it used to with
VTOrc running without displaying these pages.
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ ENV MYSQL_FLAVOR MariaDB103

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
Comment on lines -54 to -55

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since /web/vtorc and /web/orchestrator have been removed, we don't need to copy them in the lite images.

COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

# Create mount point for actual data (e.g. MySQL data dir)
Expand Down
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.mariadb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ ENV MYSQL_FLAVOR MariaDB

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

# Create mount point for actual data (e.g. MySQL data dir)
Expand Down
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.mariadb103
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ ENV MYSQL_FLAVOR MariaDB103

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

# Create mount point for actual data (e.g. MySQL data dir)
Expand Down
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.mysql57
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ ENV PATH $VTROOT/bin:$PATH

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

# Create mount point for actual data (e.g. MySQL data dir)
Expand Down
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.mysql80
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ ENV MYSQL_FLAVOR MySQL80

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

# Create mount point for actual data (e.g. MySQL data dir)
Expand Down
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.percona57
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ ENV PATH $VTROOT/bin:$PATH

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

# Create mount point for actual data (e.g. MySQL data dir)
Expand Down
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.percona80
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ ENV MYSQL_FLAVOR MySQL80

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

# Create mount point for actual data (e.g. MySQL data dir)
Expand Down
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.testing
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ ENV PATH $VTROOT/bin:$PATH

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

# Create mount point for actual data (e.g. MySQL data dir)
Expand Down
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.ubi7.mysql57
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ ENV PATH $VTROOT/bin:$PATH

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

RUN mkdir -p /licenses
Expand Down
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.ubi7.mysql80
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ ENV MYSQL_FLAVOR MySQL80

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

RUN mkdir -p /licenses
Expand Down
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.ubi7.percona57
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ ENV PATH $VTROOT/bin:$PATH

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

RUN mkdir -p /licenses
Expand Down
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.ubi7.percona80
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ ENV MYSQL_FLAVOR MySQL80

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

RUN mkdir -p /licenses
Expand Down
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.ubi8.arm64.mysql80
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ ENV MYSQL_FLAVOR MySQL80

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

RUN mkdir -p /licenses
Expand Down
2 changes: 0 additions & 2 deletions docker/lite/Dockerfile.ubi8.mysql80
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ ENV MYSQL_FLAVOR MySQL80

# Copy artifacts from builder layer.
COPY --from=builder --chown=vitess:vitess /vt/install /vt
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/orchestrator /vt/web/orchestrator
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtorc /vt/web/vtorc
COPY --from=builder --chown=vitess:vitess /vt/src/vitess.io/vitess/web/vtadmin /vt/web/vtadmin

RUN mkdir -p /licenses
Expand Down
5 changes: 1 addition & 4 deletions examples/compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,8 @@ vitess/examples/compose$ ./lvtctl.sh Help
- vtgate web ui:
http://localhost:15099/debug/status

- vtorc web ui:
- vtorc ui:
http://localhost:13000

- vtorc debug ui:
http://localhost:13200
Comment on lines -153 to -157

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We no longer have the old UI. Website docs have to be changed for this. Same change has been made for all the other examples as well.


- Stream querylog
`curl -S localhost:15099/debug/querylog`
Expand Down
5 changes: 2 additions & 3 deletions examples/compose/docker-compose.beginners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ services:
- vtctld
- set_keyspace_durability_policy
ports:
- "13200:8080"
- "13000:3000"
- "13000:8080"
volumes:
- ".:/script"
environment:
Expand All @@ -304,7 +303,7 @@ services:
- DB_PASS
- DB_CHARSET
healthcheck:
test: ["CMD-SHELL","curl -s --fail --show-error localhost:3000/api/status"]
test: ["CMD-SHELL","curl -s --fail --show-error localhost:8080/debug/health"]
interval: 5s
timeout: 10s
retries: 15
Expand Down
3 changes: 1 addition & 2 deletions examples/compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ services:
- DB_PASS=
image: vitess/lite:${VITESS_TAG:-latest}
ports:
- 13200:8080
- 13000:3000
- 13000:8080
volumes:
- .:/script
vttablet101:
Expand Down
3 changes: 1 addition & 2 deletions examples/compose/vtcompose/docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ services:
- DB_PASS=
image: vitess/lite:${VITESS_TAG:-latest}
ports:
- 13000:3000
- 13200:8080
- 13000:8080
volumes:
- .:/script
vttablet101:
Expand Down
3 changes: 1 addition & 2 deletions examples/compose/vtcompose/vtcompose.go
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,7 @@ func generateVTOrc(dbInfo externalDbInfo, keyspaceInfoMap map[string]keyspaceInf
- DB_USER=%[4]s
- DB_PASS=%[5]s
ports:
- "13000:3000"
- "13200:%[1]d"
- "13000:%[1]d"
command: ["sh", "-c", "/script/vtorc-up.sh"]
%[6]s
`, opts.webPort, opts.topologyFlags, externalDb, dbInfo.dbUser, dbInfo.dbPass, dependsOn)
Expand Down
1 change: 0 additions & 1 deletion examples/compose/vtorc-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ exec /vt/bin/vtorc \
$TOPOLOGY_FLAGS \
--logtostderr=true \
--port $web_port \
--orc_web_dir=/vt/web/vtorc \
--config $config
1 change: 0 additions & 1 deletion examples/compose/vtorc/default.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"Debug": true,
"EnableSyslog": false,
"ListenAddress": ":3000",
"MySQLTopologyUser": "orc_client_user",
"MySQLTopologyPassword": "orc_client_user_password",
"MySQLReplicaUser": "vt_repl",
Expand Down
8 changes: 2 additions & 6 deletions examples/local/scripts/vtorc-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@
source ./env.sh

log_dir="${VTDATAROOT}/tmp"
web_dir="../../web/vtorc"
vtorc_web_port=16000
port=16001
port=16000

vtorc \
$TOPOLOGY_FLAGS \
--orc_web_dir "${web_dir}" \
--logtostderr \
--alsologtostderr \
--config="./vtorc/config.json" \
Expand All @@ -21,8 +18,7 @@ echo ${vtorc_pid} > "${log_dir}/vtorc.pid"

echo "\
vtorc is running!
- UI: http://localhost:${vtorc_web_port}
- Debug UI: http://localhost:${port}
- UI: http://localhost:${port}
- Logs: ${log_dir}/vtorc.out
- PID: ${vtorc_pid}
"
1 change: 0 additions & 1 deletion examples/local/vtorc/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"ListenAddress": ":16000",
"MySQLTopologyUser": "orc_client_user",
"MySQLTopologyPassword": "orc_client_user_password",
"MySQLReplicaUser": "vt_repl",
Expand Down
Loading