All records in an atomic unit are stored in the same shard.
原子单元中的所有记录都会存储在相同的分片上。
Now we define the shard strategies to be used in the application.
现在我们定义应用程序中要使用的分片策略。
Before you shard, make sure your application's size and growth merit it.
在进行切分之前,一定要确定应用程序的规模和增长对其有利。
We'll call this pool a processing unit, with one pool hosted in each shard.
我们将这个线程池称为一个处理单元,每个shard中托管一个线程池。
The difference between a partition and a shard might be confusing at first
分区和碎片之间的不同一开始可能很容易混淆
Next, we build the Shard Strategy Factory based on shard strategy implementations.
接下来,我们基于碎片策略实现构建碎片策略工厂。
He grabs the shard and slowly pulls it out, trying his best not to cry out in pain.
他捏住碎片慢慢拔了出来,虽然疼痛,但他尽力没有叫出声来。
A shard is a real, physical chunk of memory that stores the contents of a partition.
碎片是一个实际的物理内存块,它存储分区的内容。
A worker who is assigned a map task reads the contents of the corresponding input shard.
被分配到map任务的worker读取对应的数据块。
The shard ID will be mapped with respect to the virtual shard ID map configured in the later steps.
碎片ID将相对于后续步骤中配置的虚拟碎片ID映射予以映射。
Getting back to the familiar example of my racing application, I can shard by race or by runner.
现在让我们回到我经常提到的赛跑应用程序示例中,我可以根据比赛或参赛者进行切分。
Namely, it needs a shard-access strategy, a shard-selection strategy, and a shard-resolution strategy.
比如,需要一个切分访问策略、一个切分选择策略和一个切分处理策略。
In case a virtual shard id map is not provided (it is optional), it is defaulted to the physical shard id map.
如果未提供虚拟碎片ID映射(可选),默认为物理碎片id映射。
As can be seen below, we configure virtual shards two and three to map to the same physical shard two currently.
如下所示,我们配置虚拟碎片2和3以将其映射到同一物理碎片2。
Your shard strategy should, however, incorporate some means of distributing data evenly among all of your shards.
但是,您的切分策略应该包含将数据均匀分布至所有切分的方法。
Database sharding refers to the horizontal partitioning of a database with each individual partition called a shard.
数据库分片是指对数据库进行水平分区,其中每个分区称为一个碎片。
Later when a new physical shard is added, only this mapping as well the hibernate configuration file need to be provided.
稍后添加新物理碎片时,仅需提供该映射以及hibernate配置文件。
For customers, you could shard based on location (Europe, Asia, Africa, etc.), or you could shard based on something else.
对于客户来说,您可以根据所在地(欧洲、亚洲、非洲等)切分,或者您也可以根据其他元素进行切分。
The term "shard" is commonly used to describe individual servers that are designed around a traditional application pattern.
“片(shard)”这个词通常用来描述围绕一种传统应用程序模式设计的各个服务器。
Sharding also conceivably improves reliability, because even if one shard unexpectedly fails, others are still able to serve data.
切分还可以改善可靠性,因为即便一个切分意外失效,其他切分仍然可以服务数据。
Ideally, each is sized so that it can handle the entire load of the game shard, but it is reasonable to balance economics with risk.
在理想情况下,一台数据库服务器就能够处理游戏的全部负载,但是使用两台可以在成本和风险之间取得合理的平衡。
Each shard is a group of machines set up as a replica set, meaning that each machine in the shard has a full copy of the shard's data.
每个分片都是一组配置成Replica集的机器,这意味着分片里的每台机器都拥有分片数据的完整拷贝。
In contrast to the homogeneous-type architecture, players within the tiered - or shard-type architecture connect to a layer of servers.
与匀质型的体系结构相反,在分层型或分片型体系结构中,玩家连接到一个服务器层。
In this case, there are two shards: 0 and 1, where shard 1 holds RACES with a distance greater than 10 miles and shard 0 holds all others.
在这种情况下,有两个切分:0和1,其中切分1中包含10英里以上的比赛,切分0中包含所有其他比赛。
With provisioning of new tenants, we can create one more virtual shard and map it to the same predicted physical shards or more physical shards.
提供新承租者之后,我们可以再创建一个虚拟碎片并将其映射到同一预期物理碎片或更多物理碎片。
The shards themselves would live on different machines and each shard would hold all related data, such as customer preferences or order history.
这些切分分别处于不同的计算机上,且每个切分将存储所有相关数据,如客户喜好或订购历史。
Config servers - each configuration server contain the cluster's metadata, what shards exist in the system, and what chunks of data is on each shard.
configservers—每个配置服务器包含了集群的元数据、系统中存在的Shard以及每个Shard中存放了什么样的数据块。
Directing a query to the appropriate shards is handled automatically, so applications do not need to keep track of which shard holds what data elements.
MongoDB会自动将查询引导到合适的分片上,因此应用程序并不需要了解哪个分片持有什么数据元素。
Org.hibernate.shards.strategy.selection.ShardSelectionStrategy - This strategy allows us to determine the shard on which a new object should be created.
ShardSelectionStrategy—该策略允许我们决定创建新对象所在的碎片。
Replica shards are backup copies of all the data in the primary shard, and their main purpose is to recover from a primary shard failure to provide high availability.
复制碎片是主碎片中所有数据的备份副本,它们的主要目的是从主碎片失败中恢复,提供高可用性。
应用推荐