diff --git a/README.md b/README.md index 10d35c811d..1fb4fdf759 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ docker run -itd --network wescale-network --name wescale \ -e MYSQL_ROOT_PASSWORD=passwd \ -e MYSQL_PORT=3306 \ -e MYSQL_HOST=mysql-server \ - apecloud/apecloud-mysql-scale:0.3.7 \ + apecloud/apecloud-mysql-scale:0.3.8 \ /vt/examples/wesql-server/init_single_node_cluster.sh ``` @@ -71,6 +71,31 @@ mysql -h127.0.0.1 -uroot -ppasswd -P15306 mysql -h127.0.0.1 -uroot -ppasswd -P3306 ``` +Try out Declarative DDL: +```sql +SET @@enable_declarative_ddl=true; + +CREATE DATABASE if not exists test; +USE test; + +CREATE TABLE if not exists test_table ( + id int primary key, + name varchar(255) +); + +SHOW CREATE TABLE test_table; + +CREATE TABLE if not exists test_table ( + id int primary key, + name varchar(255), + email varchar(255), + profile varchar(255), + index (name, email) +); + +SHOW CREATE TABLE test_table; +``` + Clean up the containers: ```shell docker rm -f mysql-server wescale @@ -105,6 +130,15 @@ Join our [Discord](https://discord.com/channels/1308609231498510427/130860923149 # Developer * [Use FailPoint Injection In WeScale.md](doc%2Fdeveloper%2FUse%20FailPoint%20Injection%20In%20WeScale.md) +# Monitoring +Once you have WeScale up and running, you can monitor the cluster using prometheus and grafana. +```bash +cd ./examples/metrics && ./start_dashboard.sh +``` +Open your browser and navigate to `http://localhost:3000/dashboards` to view the dashboard. + +![20241217-164819.jpeg](doc%2F20241217-164819.jpeg) + # Contributing We welcome contributions to WeScale! If you have any ideas, bug reports, or feature requests, please feel free to open an issue or submit a pull request. diff --git a/doc/20241217-164819.jpeg b/doc/20241217-164819.jpeg new file mode 100644 index 0000000000..36bb167004 Binary files /dev/null and b/doc/20241217-164819.jpeg differ