This guide aims to provide a quick and easy way to get started with RisingWave.
curl
command.
psql
installed in your environment. To learn about how to install it, see Install psql without PostgreSQL.
Open a new terminal window and run:
exam_scores
to store information about examination scores.
average_exam_scores
materialized view will be automatically updated. RisingWave performs incremental computations in the background to keep the results up to date.
Now, let’s insert five additional rows of data into the exam_scores
table and query the latest result from the average_exam_scores
materialized view. This will provide us with the updated average score for each examination.
compactor
, frontend
, compute
and meta
are all embedded in this process.
For state store, we will use the embedded LocalFs
Object Store, eliminating the need for an external service like minio
or s3
; for meta store, we will use the embedded SQLite
database, eliminating the need for an external service like etcd
.
By default, the RisingWave standalone mode will store its data in ~/risingwave
, which includes both Metadata
and State Data
.
For a batteries-included setup, with monitoring
tools and external services like kafka
fully included, you can use Docker Compose instead. If you would like to set up these external services manually, you may check out RisingWave’s Docker Compose, and run these services using the same configurations.
--state-store-directory
) and in-memory mode (--in-memory
).
--state-store-directory
specifies the new directory where the cluster’s Metadata
and State Data
will reside. The default is to store it in the ~/risingwave
folder.
--in-memory
will run an in-memory instance of RisingWave, both Metadata
and State Data
will not be persisted.
RisingWave
directory.
Start your prometheus instance:
grafana/risingwave-dev-dashboard.json
, grafana/risingwave-user-dashboard.json
.
With that you can now monitor your standalone cluster with Grafana and Prometheus.