Clustering
On this page
How does SingleStore shard tables?
Every distributed table (except reference tables, which are replicated in whole on each leaf
node) has a SHARD KEY
that specifies which columns of a row to hash to determine what partition a row should reside in.SHARD KEY
as part of the CREATE TABLE
statement.
What are aggregator and leaf nodes?
SingleStore stores and computes data on leaf nodes.
What is a Master Aggregator
?
The Master Aggregator is a specialized aggregator responsible for cluster monitoring and failover.
What happens if the Master Aggregator crashes?
If the Master Aggregator becomes unresponsive, clients can continue to execute DML queries (e.INSERT
and SELECT
) against the other aggregators, but DDL and clustering operations can not be performed until the master aggregator is revived or another aggregator is promoted
to be the Master Aggregator.
How do I add nodes to SingleStore?
Using the new SingleStore management tools, you can add new nodes and assign them roles in your cluster.
How many aggregator and leaf nodes do I need?
SingleStore stores data in leaf nodes, so you need enough leaf nodes to store all your data in memory.
The recommended number of aggregators depends on your use case.
The appropriate ratio of aggregators to leaves also depends on the type of workload running.
Can I query the leaf nodes individually?
Yes, but this is not recommended.
After I ran a single host install, why are there 2 SingleStore nodes (or 4 SingleStore processes) running?
This is the single host cluster
setup.2 SingleStore Nodes
is shown (each SingleStore instance or node contains two processes).
Last modified: July 26, 2024