Apache Geode uses member groups

      Apache Geode allows you to organize your distributed system members into logical groupings.

 

      Using grouping in Apache Geode is optional. The benefit of using member groups is the ability to coordinate certain actions of members based on members of the logical group. For example, by defining and using member groups, you can:

     

  • Change a subset of configuration properties for a specific member or members. See "Modifying the Runtime" in gfsh.
  • Perform certain disk operations, such as compaction of disk storage in member groups. See the Disk Storage Commands list of commands.
  • A specific index or region that manages all members of a group.
  • Start or stop multi-site (WAN) services such as gateway senders and gateway receivers within a member group.
  • Deploy and uninstall jar applications among all members of a group.
  • Executes the function on all members of a specified group.

 You define group names in your members gemfire.propertiesfile groups属性中or before starting members in the gfsh command.

 

Note: Any roles defined in the currently existing roles properties will be considered groups. If you wish to add member roles to your distributed system, you should add them as member groups in the group properties. The role attribute has expired, it has been replaced by the group attribute.

 

In order to add a member to a group, add the member group name to the member you started earliergemfire.properties文件中或是你可以在gfsh命令中启动一个成员并通过在启动的时候加上--group参数。

 

A member can belong to multiple groups.

 

       Member groups can also be used to organize members from the customer view and to organize members from the peer members view. See Organization Peer Logical Member Groups and Server Logical Member Groups for more information. On the client side, you can provide the member group name when configuring the client connection pool. Use the <pool server-group> element in the client cache.xml file.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327067120&siteId=291194637