Running with Vitess Operator

How to configure Vitess Kubernetes Operator to run VTOrc

Get Started

The Vitess operator deploys one VTOrc instance for each keyspace that it is configured for. Please look at the VTOrc reference page to know all the flags that VTOrc accepts.

Configuring VTOrc in Vitess Operator

The VTOrc can be configured to run for a given keyspace by specifying the vitessOrchestrator specification as part of the keyspace spec. Resource limits and requests can be specified as part of the configuration and the default behaviour of VTOrc can be changed by specifying any desired flags in the extraFlags field.

The VTOrc UI runs on the port 15000 of the container and port-forwarding can be setup to access it.

Example Configuration

An example deployment from the VTOrc end to end test on the Vitess Operator looks like:

  1. keyspaces:
  2. - name: commerce
  3. durabilityPolicy: semi_sync
  4. turndownPolicy: Immediate
  5. vitessOrchestrator:
  6. resources:
  7. limits:
  8. memory: 128Mi
  9. requests:
  10. cpu: 100m
  11. memory: 128Mi
  12. extraFlags:
  13. recovery-period-block-duration: 5s

The full configuration file is available here.