Riak
Template:Short description Script error: No such module "Infobox". Script error: No such module "Check for unknown parameters".Script error: No such module "Check for conflicting parameters".
Riak (pronounced "ree-ack" [1]) is a distributed NoSQL key-value data store that offers high availability, fault tolerance, operational simplicity, and scalability.[2] Riak moved to an entirely open-source project in August 2017, with many of the licensed Enterprise Edition features being incorporated.[3] Riak implements the principles from Amazon's Dynamo paper[4] with heavy influence from the CAP theorem. Written in Erlang, Riak has fault-tolerant data replication and automatic data distribution across the cluster for performance and resilience.[5]
Riak has a pluggable backend for its core storage, with the default storage backend being Bitcask.[6] LevelDB is also supported, with other options (such as the pure-Erlang Leveled) available depending on the version.
Riak was originally developed by engineers employed by Basho Technologies[7] and maintained by them until 2017 when the rights were sold to bet365[8][9] after Basho went into receivership.[10]
Main features
Script error: No such module "Unsubst".
- Fault-tolerant availability
- Riak replicates key/value stores across a cluster of nodes with a default n_val of three. In the case of node outages due to network partition or hardware failures, data can still be written to a neighboring node beyond the initial three, and read-back due to its "masterless" peer-to-peer architecture.
- Queries
- Riak provides a REST-ful API through HTTP and Protocol Buffers for basic PUT, GET, POST, and DELETE functions. More complex queries are also possible, including secondary indexes, search (via Apache Solr), and MapReduce. MapReduce has native support for both JavaScript (using the SpiderMonkey runtime) and Erlang.
- Predictable latency
- Riak distributes data across nodes with hashing and can provide latency profile, even in the case of multiple node failures.
- Storage options
- Keys/values can be stored in memory, disk, or both.
- Multi-datacenter replication
- Multi-Datacenter replication (MDC) provides uni-directional and bi-direction replication of data between Riak clusters, whether locally for resilience or globally for faster regional access. Uni-directional replication is useful for read-only sinks such as backups and Disaster Recovery sites. Bi-directional replication allows for multiple Riak cluster to have eventually consistent data across vast distances. Complex replication scenarios such as chains, hub-and-spoke and mesh networks are possible due to the Cascades feature, which allows replication of data between clusters that are not directly connected. There are two primary modes of operation: fullsync and realtime. Fullsync mode ensures that all data on the source cluster is replicated to the sink cluster. Only the metadata and changes are transferred, making this fast and efficient. Realtime mode sends updates made to a source cluster to the sink cluster in realtime. These modes are designed to work together for best performance All multi-datacenter replication occurs over multiple concurrent TCP connections to maximize performance and network utilization.
- Tunable consistency
- Option to choose between eventual and strong consistency for each bucket.
Main products
All versions of Riak are now entirely open-source and free, and include the extra features that Basho charged license fees for.
Basho operated a freemium model, wherein they provided free versions of Riak in the form of Riak Core, Riak KV, Riak CS and Riak TS but made their money from licensing more advanced features and SLA-based support. The extra features from the Enterprise Editions have since been integrated into the open source version of Riak KV, as of Riak KV release 2.2.6.[11] and Riak CS 2.1.2 [12]
Riak Core and Riak Core Lite
Riak Core
riak_core[13] is the distributed systems framework that underpins Riak, forming the foundation for all Riak versions. It is being maintained as part of Riak.
Riak Core Lite
riak_core_lite[14] is intended for general use as a base for creating distributed systems.
Riak KV (Key-Value)
Riak KV is a distributed NoSQL database designed to deliver maximum data availability by distributing data across multiple servers, meaning that if one client can reach one server, it should be able to read and write data.[15] KV went through a few names in its lifetime, starting as Riak then Riak DS (for Data Store) and finally Riak KV (for Key-Value).
When Basho Technologies went into receivership in 2017[10] KV development was picked up by the open source community and has continued into 2021, with 2.2.6 released in 2018 being the first community release of KV. This release integrated some features that were originally restricted to Basho's Enterprise versions of Riak.[11]
Version 2.9.0 was the first major community release by the open source community, releasing in November 2019,[11] with version 3.0.1 following on August 20, 2020.[11] Development has continued since then with the latest release being version 3.0.7.[16]
Removed features
The current version of Riak no longer supports some features in the Enterprise edition of Riak, including:
- SNMP/JMX support
Separated features in Riak KV 3.0+
The following features of Riak KV 2.x have been removed by default from the Riak build. Specific builds including these features are available.
- Yokozuna
Riak CS (Cloud Storage)
Originally known as Riak Moss[17](Riak Multi-tenant Object Storage System - MOSS) but named as Riak CS (Cloud Storage) when released, Riak CS was first publicly released in January 2012.
Riak CS (Cloud Storage) is object storage software built on top of Riak KV, Riak's distributed database. Riak CS is designed to provide simple, highly-available, distributed cloud storage at any scale, and can be used to build cloud architectures or as storage infrastructure for heavy-duty applications and services.[18]
Riak CS also includes an application called Stanchion[19] which is used to manage the serialization of requests. This enables Riak CS to manage globally unique entities like users and bucket names. Serialization in this context means that the entire cluster agrees upon a single value for any globally unique entity at any given time; when that value is changed, the new value must be recognized throughout the entire cluster.
Riak CS was briefly rebranded as Riak S2 to make it more obviously compatible with Amazon S3 but the name did not catch on and it reverted to Riak CS.
In 2021 development for Riak CS was resumed with contributions from TI Tokyo.
Riak TS (Time Series)
Riak TS is an extension to Riak KV optimized for time series data, in that:
- it supports structured data, with table definition (with a
CREATE TABLEcall) required before data can be written; - data slices from contiguous regions in its primary index (“quanta”) are stored on the same partition;
- CRUD operations are optimized for speed, at the expense of consistency.
A limited subset of SQL commands was implemented in Riak TS. There is no provision for consistency guarantees between tables (no foreign indexes). In SELECT statements, WHERE clause is supported but HAVING is not. ORDER BY was to appear in a version that was never released.
Riak TS existed as a collection of branches (in separate components of Riak KV such as riak_kv, riak_pb, etc.) and not as product with a repository of its own. It was developed by a dedicated team consisting of Gordon Guthrie (leader), Andy Till and Andrei Zavada, with occasional contributions from other developers.
Riak TS was conceived, along with Riak Data Platform project, as an attempt to diversify Basho's product line, an undertaking many insiders regard as misguided and eventually contributing to Basho's demise.
Licensing and support
Riak was originally licensed using a freemium model: open source versions of Riak KV, Riak CS and Riak TS are available, but end users can pay for additional features and support. However, since Basho entered receivership[10] and bet365[9] (purchasers of all IP) made all Riak products fully open source, all the premium features are now available in the open source versions. Since Basho's demise, community[20] ad-hoc and paid support options have arisen.
Language support
Riak has official drivers for Ruby, Java, Erlang and Python. There are also numerous community-supported drivers for other programming languages.[21]
Community development
After bet365[9] purchased the Riak IP,[8] the Riak products were made full open source and work to integrate premium features into the open source versions was completed with the 2.2.6 release.
History
Riak was originally written by Andy Gross and Justin Sheehy at Basho Technologies[1] to power a web Sales Force Automation application by former engineers and executives from Akamai. There was more interest in the datastore technology than the applications built on it, so the company decided to build a business around Riak itself, gaining adoption throughout the Fortune 100 and becoming a foundation to many of the world's fastest-growing Web-based, mobile and social networking applications, as well as cloud service providers. Releases after graduation include
Riak KV
Riak 1.0 was released September 10, 2011
| Version! | Date Released | Changes |
|---|---|---|
| 1.0 | Script error: No such module "Date table sorting". | Inition 1.0 Release[22] |
| 1.1 | Script error: No such module "Date table sorting". | Added Riaknostic, enhanced error logging and reporting, improved resiliency for large clusters, and a new graphical operations and monitoring interface called Riak Control. |
| 1.4 | Script error: No such module "Date table sorting". | Added counters, secondary indexing improvements, reduced object storage overhead, handoff progress reporting, and enhancements to MDC replication |
| 2.0 | Script error: No such module "Date table sorting". | Added new data types including sets, maps, registers, and flags simplifying application development. Strong consistency by bucket, full-text integration with Apache Solr, Security, and reduced replicas for Secondary sites. |
| 2.1 | Script error: No such module "Date table sorting". | Added an optimization for many write-heavy workloads – “write once” buckets – buckets whose entries are intended to be written exactly once, and never updated or over-written. |
| 2.2 | Script error: No such module "Date table sorting". | added Support for Debian 8 and Ubuntu 16.04, Solr integration improvements.[23] |
| 2.2.6 | Script error: No such module "Date table sorting". | The first community release. Added support for Multi-Datacentre Replication which was not part of open-source Riak before, added a grow-only set data type, improved data distribution over nodes and cleaned up production test issues.[24] |
| 2.9.0 | Script error: No such module "Date table sorting". | Added early support for TicTac Active Anti-Entropy, support for a new Riak specific backend called Leveled.[11] |
| 2.9.1 | Script error: No such module "Date table sorting". | Implements next-gen replication,[25] various changes to tombstones and bucket listing.[11] |
| 2.9.7 | Script error: No such module "Date table sorting". | Improved Active Anti-Entropy and improved Riak's overall stability. |
| 2.9.8 | Script error: No such module "Date table sorting". | Improved leveled functions[26] |
| 2.9.9 | Script error: No such module "Date table sorting". | Leveled stability improvements [27] |
| 3.0.1 | Script error: No such module "Date table sorting". | Adds support for OTP 20, 21, 22 but is not backwards compatible with previous OTP versions.[11] |
| 3.0.2 | Script error: No such module "Date table sorting". | Implements backend changes from 2.9.8, adds a range_check in the Tictac AAE based full-sync replication[11]
|
| 3.0.6 | Script error: No such module "Date table sorting". | Adds location-awareness to cluster management,[28] along with bug fixes from 3.0.3 and 3.0.4.[11] |
| 3.0.7 | Script error: No such module "Date table sorting". | Reverts Riak erlang runtime system in interactive mode, rather than the embedded mode it was changed to previously.[16] |
| 3.0.8 | Script error: No such module "Date table sorting". | Support flushing of disk writes, implement read-repair for key ranges to accelerate recovery after known node outage[29] |
| 3.0.9 | Script error: No such module "Date table sorting". | Improve latency and expand statistics of secondary-index queries, including information about result counts and overall query time[30] |
| 3.0.10 | Script error: No such module "Date table sorting". | Improve memory management in leveled backend, add peer discovery without configuration changes, allow configuration of Erlang VM memory and scheduler settings via riak.conf[31]
|
| 3.0.11 | Script error: No such module "Date table sorting". | Fix a bottleneck in secondary index queries with the leveled backend and > 1000 queries per second[32] |
| 3.0.12 | Script error: No such module "Date table sorting". | Improve memory management in the leveled backend, update leveldb snappy compression for wider platform support, introduce the reip_manual console command[33]
|
| 3.2.0 | Script error: No such module "Date table sorting". | Support Erlang/OTP 22, 24, and 25, update to Erlang/OTP's new logging API, update packaging to include support for Alpine Linux and FreeBSD[34] |
| 3.0.13 | Script error: No such module "Date table sorting". | Improve reliability of handoffs, add administrative helper functions to riak_client[35]
|
| 3.0.14 | Script error: No such module "Date table sorting". | Fix an issue related to handling back-pressure correctly in the leveled backend, add support for handing off reap requests via the handoff_deletes option[36]
|
| 3.0.15 | Script error: No such module "Date table sorting". | Correct an issue introduced with the auto_check feature for TictacAAE full-sync introduced in 3.0.10[37]
|
Riak CS
Riak CS was made open source on March 20, 2013[38]
| Version! | Date Released | Changes |
|---|---|---|
| 0.0.3 | Script error: No such module "Date table sorting". | The first public release of Riak CS. Known as Riak MOSS at the time.[39] |
| 0.1.0 | Script error: No such module "Date table sorting". | Bucket-level Access control, user record changes, Stanchion is now required.[40] |
| 1.0.0 | Script error: No such module "Date table sorting". | Fixes some process/socket leaks, adds a fix to prevent deadlock conditions, new subsystem for user access & storage usage calculations.[41] |
| 1.0.1 | Script error: No such module "Date table sorting". | Fixes a bug that caused requests to hang if a node in the cluster was unavailable[42] |
| 1.1.0 | Script error: No such module "Date table sorting". | Updates user creation, configuration options for anonymous users, more user account controls for admins, Garbage collection for deleted objects, improved performance.[43] |
| 1.2.0 | Script error: No such module "Date table sorting". | Early support for Multi-datacenter replication, support for riak_test integration, bug fixes.[44] |
| 1.2.1 | Script error: No such module "Date table sorting". | Add reduce phase for listing bucket contents to provide backpressure when executing the MapReduce job, Use prereduce during storage calculations, fixed incorrect 404 error when attempting to list contents of nonexistent bucket.[45] |
| 1.2.2 | Script error: No such module "Date table sorting". | Full support for MDC replication, fixed process leaks.[46] |
| 1.3.0 | Script error: No such module "Date table sorting". | Support for multi-part file uploads, bucket polices for restricted principles/conditions, range header. More administrative command controls, support for FreeBSD, SmartOS and Solaris Packaging.[47] |
| 1.3.1 | Script error: No such module "Date table sorting". | Bug fixes[48] |
| 1.4.0 | Script error: No such module "Date table sorting". | Early support for Swift API/Keystone Authentication, improved performance, bug fixes.[49] |
| 1.5.0 | Script error: No such module "Date table sorting". | Adds a multibag technical preview, new debug command, streamlines commands to new `riak-cs admin` command, improved garbage collection, updated lager, new API - Multiple objects, warning logs for manifests, siblings etc.[50] |
| 1.5.1 | Script error: No such module "Date table sorting". | Adds Bucket restrictions, adds sleep interval for manifest updates, updates riak-cs-debug, changes to bucket resolution.[51] |
| 1.5.2 | Script error: No such module "Date table sorting". | Improved logging for failures with Riak, Changes to log output for access stats, adds a script for invalid garbage collection manifest repairs.[52] |
| 1.5.3 | Script error: No such module "Date table sorting". | Add read_before_last_manifest_write option, Adds configurable timeouts for CS interactions with Riak[53]
|
| 1.5.4 | Script error: No such module "Date table sorting". | Disable backpressure sleep, Fixes an incorrect path rewrite in S3 API[54] |
| 2.0.0 | Script error: No such module "Date table sorting". | Updates Riak CS to work with Riak 2.0.5, Changes gc_max_workers to gc.max_workers and changed default setting, early support for AWS v4 authentication, adds cuttlefish, storage optimisations.[55] |
| 2.1.0 | Script error: No such module "Date table sorting". | Final Basho release - Backwards compatible with KV 2.0.5, 21.1, Adds a large number of new metrics for health monitoring purposes along with storage usage metrics. Replaced commands with riak-cs-admin equivalents. Garbage collection improvements.[56] |
| 2.1.1 | Script error: No such module "Date table sorting". | Compatible with KV 2.1.3, 2.1.4, 2.2.x and 2.9.x |
| 2.1.2 | Script error: No such module "Date table sorting". | First post-basho release.[57] |
Riak TS
Riak TS was originally released in October 2015 [58]
| Version! | Date Released | Changes |
|---|---|---|
| 1.2.0 | Script error: No such module "Date table sorting". | Implements Riak_shell to allow SWQL commands & logging in a single shell in Riak TS. Bug fixes, Multi-Datacenter replication and riak search not supported.[59] |
| 1.3.0 | Script error: No such module "Date table sorting". | Open sources Riak TS, adds a HTTP API, additional SQL commands and support for MDC replication for enterprise users[60] |
| 1.3.1 | Script error: No such module "Date table sorting". | Addresses Data loss bug in 1.3.0.[61] |
| 1.4.0 | Script error: No such module "Date table sorting". | Adds new SQL features, Rolling upgrade/downgrade support, Global data expiry (per cluster).[62] |
| 1.5.0 | Script error: No such module "Date table sorting". | Expands SQL implementation, Improves data storage and improved overall performance.[63] |
| 1.5.1 | Script error: No such module "Date table sorting". | Bug fixes from 1.5.0[64] |
| 1.5.2 | Script error: No such module "Date table sorting". | Bug Fixes from 1.5.1[65] |
Users
Notable users include AT&T, Comcast,[66] GitHub,[66] Best Buy,[66] UK National Health Services (NHS),[67] The Weather Channel,[68] and Riot Games.[69]
See also
Script error: No such module "Portal".
References
Page Template:Reflist/styles.css has no content.
- ↑ a b Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ a b Script error: No such module "citation/CS1".
- ↑ a b c Script error: No such module "citation/CS1".
- ↑ a b c Script error: No such module "citation/CS1".
- ↑ a b c d e f g h i Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ a b Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ a b c Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
Script error: No such module "Check for unknown parameters".
External links
- Script error: No such module "Official website".Script error: No such module "Check for unknown parameters".