geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (GEODE-3063) Improve docs on default string-based partition resolver
Date Mon, 20 Nov 2017 21:04:00 GMT


ASF GitHub Bot commented on GEODE-3063:

joeymcallister commented on a change in pull request #1077: GEODE-3063 partition resolver
doc revisions

 File path: geode-docs/developing/partitioned_regions/
 @@ -243,21 +273,85 @@ program the resolver's `getRoutingObject` method to return the routing
object fo
     **Java API:**
     ``` pre
     PartitionAttributes attrs = 
         new PartitionAttributesFactory()
     Cache c = new CacheFactory().create();
     Region r = c.createRegionFactory()
     Add the option `--partition-resolver=org.apache.geode.cache.util.StringPrefixPartitionResolver`
to the `gfsh create region` command.
-6.  If your colocated data is in a server system, add the `PartitionResolver` implementation
class to the `CLASSPATH` of your Java clients. The resolver is used for single hop access
to partitioned region data in the servers.
+-  For colocated data, add the `StringPrefixPartitionResolver`
+implementation class to the `CLASSPATH` of your Java clients.
+The resolver will work with Java single hop clients.
+**Configuring Fixed Partitioning**
+-  Set the fixed partition attributes for each member.
+    These attributes define the data stored for the region by the member and must be different
for different members. See `org.apache.geode.cache.FixedPartitionAttributes` for definitions
of the attributes. Define each `partition-name` in your data host members for the region.
For each partition name, in the member you want to host the primary copy, define it with `is-primary`
set to `true`. In every member you want to host the secondary copy, define it with `is-primary`
set to `false` (the default). The number of secondaries must match the number of redundant
copies you have defined for the region. See [Configure High Availability for a Partitioned
 Review comment:
   hyphenate "data-host members"

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Improve docs on default string-based partition resolver
> -------------------------------------------------------
>                 Key: GEODE-3063
>                 URL:
>             Project: Geode
>          Issue Type: Bug
>          Components: docs
>            Reporter: Karen Smoler Miller
>            Assignee: Karen Smoler Miller
> The new default partition resolver at
> org.apache.geode.cache.util.StringPrefixPartitionResolver
> needs more detailed documentation.
> - An example of a string specifying a key in a region operation when this partition resolver
is used.
> - What happens if the string specifying a key doesn't have a '|' delimiter.
> - An example of using this partition resolver to colocate two regions.

This message was sent by Atlassian JIRA

View raw message