right-size-the-cluster.html 931 B

1234567891011121314151617181920212223242526272829
  1. After the snapshotting phase, Materialize starts ingesting change events from
  2. the MySQL replication stream. For this work, Materialize generally
  3. performs well with a `100cc` replica, so you can resize the cluster
  4. accordingly.
  5. 1. Still in a SQL client connected to Materialize, use the [`ALTER CLUSTER`](/sql/alter-cluster/)
  6. command to downsize the cluster to `100cc`:
  7. ```mzsql
  8. ALTER CLUSTER ingest_mysql SET (SIZE '100cc');
  9. ```
  10. Behind the scenes, this command adds a new `100cc` replica and removes the
  11. `200cc` replica.
  12. 1. Use the [`SHOW CLUSTER REPLICAS`](/sql/show-cluster-replicas/) command to
  13. check the status of the new replica:
  14. ```mzsql
  15. SHOW CLUSTER REPLICAS WHERE cluster = 'ingest_mysql';
  16. ```
  17. <p></p>
  18. ```nofmt
  19. cluster | replica | size | ready
  20. -----------------+---------+--------+-------
  21. ingest_mysql | r1 | 100cc | t
  22. (1 row)
  23. ```