Important
Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.
Cluster Architecture
On this page
Unique Design
SingleStore is a real-time hybrid transaction/analytics processing (HTAP) database designed with a distributed SQL architecture.
Clusters further enhance this distributed architecture by freeing databases from the confines of a single workload, delivering true separation of compute and storage.
Cluster Architecture
Clusters are built using the native data replication engine.
Combined with SingleStore's query code generation and Universal Storage architecture, this allows clusters to deliver extremely low latency query response, highly concurrent access and fast parallel streaming ingest while removing the need to copy data across workloads.
Implementation
Each cluster is fully isolated with its own compute, settings, and connection endpoints.
Databases can be attached to multiple clusters simultaneously using “smart attach”.
The R/W attachment writes logs/blobs to shared storage and sends logs to the R/O attached clusters asynchronously.
Attachments are created on each database, and it is possible for a cluster to have a combination of R/W and R/O attachments.
SingleStore automatically synchronizes data from read-write (R/W) attachments to read-only (R/O) attachments asynchronously and in near real time.
Synchronization uses shared storage, where the R/W attachment writes logs and data blobs that R/O attached clusters consume to maintain their local data.
Because synchronization is asynchronous, newly committed writes may take a short time to become visible on R/O attachments.
When sizing the cluster ensure that the selected size can accommodate the size of the working data set for that cluster's workload.
Use cases for read replicas include:
-
Offloading analytical queries from a transactional workload
-
Providing distributed read access
-
Isolating reporting workloads from production ingest
Read replicas can be promoted to read/write in failover scenarios.
Smart Attach
Smart Attach is the method by which databases can be attached to multiple clusters simultaneously in SingleStore Helios.
It is the underlying mechanism for the READ ONLY option in the ATTACH DATABASE command.
Key points:
-
Each database can have one R/W (read-write) attachment and many R/O (read-only) attachments.
-
This allows data to be shared across workloads, providing scalability and isolation.
-
The R/W attachment writes logs/blobs to shared storage and sends logs to R/O attached clusters asynchronously.
-
R/O attached clusters replay these logs, creating local blobs.
-
It is a zero-copy approach, no full data copy is needed for read-only attachments.
Following is the syntax:
ATTACH DATABASE <database-name> READ ONLY;
Data Freshness on Read-Only Attachments
SingleStore provides near real-time data synchronization between read-write (R/W) and read-only (R/O) attachments, enabling applications to query fresh data across multiple clusters without requiring ETL pipelines or manual data movement.
SingleStore targets a data freshness objective of under one minute between R/W and R/O attachments, however this can vary depending on the workload and cloud service latency fluctuations.
Optimizing for Data Freshness
Applications can choose the appropriate attachment and access pattern based on their consistency and latency requirements:
-
Immediate read-after-write consistency: Workloads requiring immediate visibility of committed writes should connect directly to the R/W attached cluster.
Resource pools can manage resource consumption and protect the write path. -
Near real-time reads: R/O attachments are ideal for analytics, reporting, and other workloads that benefit from fresh data without requiring immediate visibility of every write.
-
Applications with specific freshness requirements: Applications can validate freshness using monotonic timestamps or sequence numbers, retry reads when expected changes are not yet visible, or execute dependent operations on the R/W attached cluster.
Sizing for Consistent Performance
R/O attached clusters independently process queries and synchronize incoming changes.
Cross-Region Replication
Note
This is a Preview feature.
Cross-region read replicas use Database Replication to synchronize data across regions.
Limitations
-
Data freshness: The under-one-minute synchronization target is an objective.
Actual latency may exceed this objective. -
Consistency: R/O attachments provide eventual consistency rather than immediate read-after-write consistency.
-
Resource contention: Undersized R/O attached clusters may experience increased replication latency when query processing competes with replication replay for CPU resources.
Last modified: