发明名称 Replica placement strategy for distributed data persistence
摘要 Methods and systems are described that involve replica placement strategy for distributed systems. At the time of index creation, initial index replica placement is decided. The first index replica is placed locally on the current processing server node. This server node operates as a master host for the first replica. The other index replicas are placed on different hosts depending on the index type, split index or non-split index, and a set of criteria. For non-split indexes, the set of criteria includes: a number of recently created replicas per host, resource usage per host, and a total number of replicas per host. For split indexes, the set of criteria includes: a number of replicas of any split index part per host and a number of local first replicas of split index parts. If all criteria re equal, the first host in alphanumeric ordering receives a next replica.
申请公布号 US8862540(B2) 申请公布日期 2014.10.14
申请号 US201213684588 申请日期 2012.11.26
申请人 SAP SE 发明人 Mordvinova Olga;Shepil Oleksandr
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项 1. A non-transitory computer-readable storage medium tangibly storing machine-readable instructions thereon, which when executed by the machine, cause the machine to perform operations comprising: detecting creation of one or more of a non-split index and a split index, wherein the split index is formed by splitting an index into a plurality of split parts where the plurality of split parts is processed in parallel in a plurality of hosts; storing a first replica of a part of the split index locally on a local host in the plurality of hosts, wherein the first replica is a local replica and the local host is a master host for the local replica of the split index part; determining a total number of replicas of any part of the split index that are stored on a first slave host; when the total number of replicas stored on the first slave host is equal to a total number of replicas of any part of the split index stored on a second slave host, determining a total number of local replicas stored on the first slave host and a total number of local replicas stored on the second slave host; and when the total number of local replicas stored on the first slave host is equal to the total number of local replicas stored on the second slave host, storing a second replica of the part of the split index on the first slave host.
地址 Walldorf DE