什么是 couchbase 服务器中的集群/桶

What's a Cluster / Bucket in couchbase Server

总的来说,我是 Couchbase 和 NoSql 技术的新手,但我正在使用 express 和其他一些模块在节点 js 上开发网络聊天应用程序 运行。

我选择使用 NoSql 在服务器端存储会话和所有需要的数据。但是我不太了解 Couchbase 的一些重要特性:什么是 Cluster,Bucket?我在哪里可以找到服务器工作原理的明确定义?

Couchbase 与许多其他产品一样使用术语集群,Couchbase 集群只是机器的集合 运行 作为 Couchbase 节点的协调分布式系统。

Bucket 是一个 Couchbase 特定术语,大致类似于传统 RDBMS 术语中的 'database'。 Bucket 提供了一个容器,用于对您的数据进行分组,无论是在组织方面还是在类似数据的分组和资源分配方面。您可以单独配置您的存储桶,为每个存储桶提供不同的配额、不同的 IO 优先级和不同的安全设置。桶也是在 Couchbase 中命名文档的主要方法。

有关更多信息,Architecture and Concepts overview in the Couchbase documentation, specifically data storage, is a good starting point. A somewhat outdated, but still useful video on Introduction to Couchbase 可能对您也有用。

虽然已经回答了,但希望以下内容对某人更有帮助。

Couchbase 集群包含节点。节点包含桶。桶包含文件。可以通过多种方式检索文档:通过键、使用 N1QL 查询以及使用视图。(Ref)

如 Couchbase 文档中所述,

Node

A single Couchbase Server instance running on a physical server, virtual machine, or a container. All nodes are identical: they consist of the same components and services and provide the same interfaces.

Cluster

A cluster is a collection of nodes that are accessed and managed as a single group. Each node is an equal partner in orchestrating the cluster to provide facilities such as operational information (monitoring) or managing cluster membership of nodes and health of nodes.

Clusters are scalable. You can expand a cluster by adding new nodes and shrink a cluster by removing nodes.

The Cluster Manager is the main component that orchestrates the cluster level operations. For more information, see Cluster Manager.

Bucket

A bucket is a logical container for a related set of items such as key-value pairs or documents. Buckets are similar to databases in relational databases. They provide a resource management facility for the group of data that they contain. Applications can use one or more buckets to store their data. Through configuration, buckets provide segregation along the following boundaries:

  • Cache and IO management
  • Authentication
  • Replication and Cross Datacenter Replication (XDCR)
  • Indexing and Views

更多信息:Couchbase Terminology