As next-generation information technologies, such as AI and big data analytics, evolve rapidly, businesses are seeking faster data access speeds and higher throughput. In response, TOS has launched an accelerator feature at the availability zone level that stores frequently accessed objects on NVMe SSDs, a high-performance storage medium. This feature provides quick responses with millisecond-level latency and high data transfer rates for demanding business workloads.
TOS accelerators are deeply integrated into TOS. They deliver the same strong consistency and native interface experience as standard TOS services. With two modes — read-only cache and read/write cache — these accelerators can meet the performance and cost requirements of different business scenarios.
- Read-only cache: Suitable for read-intensive workloads. It caches hot data to significantly improve read performance. However, write acceleration is not supported, and write requests pass through to the backend storage.
- Read/write cache: Suitable for mixed read/write or write-intensive workloads. Written data goes directly into the high-speed cache and is asynchronously flushed to the backend, achieving acceleration for both reads and writes.
TOS accelerators offer the following benefits: low latency, high throughput, high-throughput density, strong consistency, elastic scalability, separation of storage and compute, multiple warm-up options, and free bandwidth for data transfer.
- The accelerator enables you to deploy your data and clients within the same availability zone using NVMe SSDs, which allow for millisecond-latency in the single digits.
- The accelerator provides a linear increase in bandwidth with capacity, delivering burst throughput of hundreds of GB/s and ensuring smooth and stable data transfer for businesses.
- In read-only cache mode, the accelerator provides up to 300 MB/s per TiB of storage.
- In read/write cache mode, the accelerator provides up to 125 MB/s per TiB of storage. Among these, the accelerator provides up to 125 MB/s per TiB for pure reads and up to 42 MB/s per TiB for pure writes.
- The accelerator automatically reloads new data whenever changes are made to TOS, ensuring that you always have access to the latest information.
- The accelerator's cache capacity and provisioned bandwidth can be flexibly scaled up or down to adapt to rapidly changing business needs. Scaling up takes effect immediately. Scaling down allows one adjustment per hour, with a maximum reduction of 100 TiB each time. Deleting an accelerator counts as a scaling-down operation.
tip
The maximum reduction limit only applies to accelerators with the read-only cache mode.
- Separation of storage and compute
- Unlike cache spaces on compute servers, the accelerator operates independently. This enables adjustments to be made online to the cache size and performance.
- Multiple warm-up options
- The accelerator provides several warm-up options, such as write‑through, read-through, synchronous, and asynchronous, to enhance access efficiency and adapt to various business scenarios.
- Write-through warm-up: This option is only available in read/write cache mode. It is enabled by default and not configurable. When a client writes data, it is written directly into the accelerator.
- Read-through warm-up: When a read request results in a cache miss, the accelerator automatically retrieves the requested data from TOS. The accelerator then stores the data and returns it to the client. This option is enabled by default and cannot be disabled.
- Synchronous warm-up: This option is only available in read-only cache mode. Data written to TOS through accelerated domain names is also cached synchronously in the accelerator. For more information, see Creating TOS accelerators.
- Asynchronous warm-up: Data is cached in advance in the accelerator. For more information, see Creating warm-up tasks.
- Free bandwidth for data transfer
- Bandwidth consumed by data transfers between your accelerator and TOS is provided free of charge. It does not deduct from your account's intranet bandwidth quota. This ensures seamless interaction between your accelerator and TOS.
TOS accelerators provide business applications with fast access and elastic scaling. They are ideal for scenarios involving high bandwidth and frequent data reads.
- Workloads requiring high write throughput
- In large model training, writing checkpoint files requires an extremely high level of throughput. Using the read/write cache accelerator increases throughput, allowing for more efficient data writes and enabling training to resume immediately.
- Fast caching of intermediate results
- In big data computing, the read/write cache accelerator can serve as a high-performance buffer for ETL (extract, transform, load) tasks in MapReduce frameworks, providing high read and write performance. Once a task is complete, the cached data can be removed.
- Model training and inference
- During the pre-training and informal training stages on development machines and similar environments, high bandwidth and QPS are necessary, but latency requirements are relatively relaxed. Single-digit millisecond latency is acceptable. The accelerator provides a better cost-to-performance ratio.
- Advanced caching solutions located close to computing resources are primarily required to meet the demand for high bandwidth, high QPS, and strict latency requirements during model training or inference. However, since cache space for computing on the server is limited, an efficient data flow is essential when the near-compute cache is inadequate. In this case, the accelerator can serve as a secondary cache to accelerate access to TOS and mitigate the impact of limited cache space.
- In big data analytics, querying and analyzing data typically involves large volumes of data, ambiguous query scopes, and tight time constraints. The accelerator can be used to preload data from TOS into the cache, thereby reducing analysis delays and improving efficiency.
- In rendering scenarios such as producing special effects and game scenes, a high QPS is typically required to ensure a smooth user experience. The accelerator can preload large assets from TOS into the cache, which enhances data access speed and meets high QPS demands in scenarios involving small files.
TOS accelerators use intelligent caching and data flow mechanisms to transparently accelerate data access for your business. The core operating principle varies depending on the cache mode.
In read-only cache mode, the accelerator transparently caches data from TOS in the background. Its purpose is to improve data read performance.
Using the accelerator in read-only cache mode can improve data reading performance. The process is as follows:
- A client sends a read request to the accelerator via an accelerated domain name. The request is then automatically forwarded to the accelerator.
- Upon receiving the read request, the accelerator looks for data in the cache.
- If the data is available in the cache, it will be sent directly to the client.
- If the data is not found in the cache, it is retrieved from TOS and sent back to the client. At the same time, the data is written to the cache.
In read-only cache mode, the accelerator does not process write requests. Instead, all write requests pass through the accelerator and the data are written directly to, and therefore stored in, TOS. This process does not use cache space or receive write acceleration. However, you can proactively load written data into the cache using either synchronous or asynchronous warm-up.
If the cache is full, the data with the lowest access frequency is removed to make space for new data.
In read/write cache mode, the accelerator speeds up reads and significantly reduces write latency via a "foreground cache writing and background asynchronous flushing" mechanism.
The read flow in read/write cache mode is similar to that in read-only cache mode. Regardless of whether data has been written to the cache but not yet flushed, or has been flushed and exists as read cache, data can be read at high speed. When an object is updated in TOS, the cache is automatically invalidated to ensure that the latest data is read.
- A client sends a write request to the accelerator via an accelerated domain name. The data is written to the accelerator synchronously. Once the write succeeds, the client receives a successful response, achieving extremely fast writes.
- After the data is written to the cache, the accelerator asynchronously flushes it to TOS for storage.
Based on the configured expiration time, data that has been flushed to TOS and has expired is evicted from the cache space.
TOS accelerators offer two flexible performance modes to meet the needs of different workloads. The performance of an accelerator, in terms of bandwidth and IOPS, is closely related to its cache capacity and storage usage.
The table below explains how performance is determined for each accelerator mode.
The table below describes the performance metrics for each accelerator mode.
The table below lists the supported regions and availability zones.