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

Unique Design

SingleStore is a real-time hybrid transaction/analytics processing (HTAP) database designed with a distributed SQL architecture. This means that compute can be scaled out using a clustered architecture, rather than only scaling up using larger machines.

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. A collection of compute nodes are clustered on top of cloud hardware. These compute nodes have dedicated vCPU, memory, and persistent cache to deliver immediate query responsiveness, while operating on top of scale-out object storage.

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. Clusters can be deployed in any supported cloud provider and region, and can span multiple Availability Zones within a region for fault tolerance. A single organization can deploy many clusters across cloud providers and regions simultaneously.

Databases can be attached to multiple clusters simultaneously using “smart attach”. Each database can have one R/W attachment and many R/O 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 the R/O attached clusters asynchronously. The R/O attached clusters replay these logs, creating local blobs. For example, a customer-facing SaaS application could be running on one cluster and writing data into a database. An internal telemetry application could be running on another cluster and reading data from that same database. In this scenario, the database has an R/W attachment to the first cluster and a R/O attachment to the second.

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. This enables multiple clusters to access fresh data for analytics and other real-time workloads without requiring data duplication, complex ETL pipelines, or manual synchronization.

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. This process provides eventual consistency, allowing read-only clusters to serve queries independently while continuously incorporating the latest changes from the R/W attachment.

Because synchronization is asynchronous, newly committed writes may take a short time to become visible on R/O attachments. For expected synchronization latency and guidance on workloads with specific freshness requirements, refer to Data Freshness on Read-Only Attachments.

When sizing the cluster ensure that the selected size can accommodate the size of the working data set for that cluster's workload. A small cluster attaching a database with a large working set will not have sufficient resources to process the active data, which can cause cache misses and affect overall workload performance.

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. Synchronization occurs asynchronously as the R/W attached cluster uploads changes to shared storage and R/O attached clusters retrieve the corresponding data into their active caches. This provides eventual consistency while allowing each cluster to independently serve its workloads.

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. Size each cluster according to its working data set, query concurrency, and expected workload to ensure sufficient compute resources for both query execution and replication replay.

Cross-Region Replication

Note

This is a Preview feature.

Cross-region read replicas use Database Replication to synchronize data across regions. Replication latency can vary based on network conditions, geographic distance, and workload characteristics, and may exceed the under-one-minute freshness objective for R/O attachments.

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:

Was this article helpful?