Re: Creating Regions Dynamically using Functions

2018-11-01 Thread Barry Oglesby
Marcus, You might want to also co-locate all the requests for a single session in the same partitioned region bucket. This will allow you to use a function to query all the requests for a single session id all on one server rather than having the query be spread among the buckets on all the server

Re: Creating Regions Dynamically using Functions

2018-10-31 Thread Marcus Dushshantha Chandradasa
Hi Udo, This is perfect. This is exactly what I was looking for. Thank you very much. Thanks Marcus On Tue, Oct 30, 2018 at 11:54 PM Udo Kohlmeyer wrote: > Hi there Marcus, > > It is actually a blessing that Mike asked the question of what you are > trying to achieve. > > So, basically, create

Re: Creating Regions Dynamically using Functions

2018-10-30 Thread Udo Kohlmeyer
Hi there Marcus, It is actually a blessing that Mike asked the question of what you are trying to achieve. So, basically, create a region for every sessionId does seem like the logical answer, but imo it is most likely the lesser of the two options. I could go into details, but with higher n

Re: Creating Regions Dynamically using Functions

2018-10-30 Thread Marcus Dushshantha Chandradasa
Hi Mike, Thanks for asking that question. I am working on a project where I need to persist a series of work coming to a given docker based worker node. the type of work is a sequential list with a unique id for each item in the list. And these work requests come in separately in REST calls with S

Re: Creating Regions Dynamically using Functions

2018-10-30 Thread Michael Stolz
While everyone is helping you get to your goal of creating regions dynamically, I'd like to learn why dynamic region creation is important. Could you please explain that? -- Mike Stolz Principal Engineer - Gemfire Product Manager Mobile: 631-835-4771 On Oct 30, 2018 6:12 PM, "Udo Kohlmeyer" wro

Re: Creating Regions Dynamically using Functions

2018-10-30 Thread Udo Kohlmeyer
Hi there Marcus, It seems the default pool is only create once a region operation is done. In order to get around this, you can just do the following: ClientCache cache = new ClientCacheFactory().set("log-level","WARN").create(); Pool pool = PoolManager.createFactory().addLocator("localhost",

Re: Creating Regions Dynamically using Functions

2018-10-30 Thread Marcus Dushshantha Chandradasa
Thanks for the responses. I checked the versions. I was playing around with spring-data-geode as well, maybe that might have had a different version. now I created a separate project with just geode core 1.7 dependency and the version problem seems to be gone away. Now, when I use a Cache like ea

Re: Creating Regions Dynamically using Functions

2018-10-30 Thread Udo Kohlmeyer
From the exception, it seems that you are not using the same version of Geode. Could you look into that... Also, when creating a client, you use "ClientCacheFactory" and define a pool pointing at the locators. https://geode.apache.org/docs/guide/16/topologies_and_comm/cs_configuration/client_s

Re: Creating Regions Dynamically using Functions

2018-10-30 Thread Jens Deppe
I don't think this has anything to do with your function code. Basically it appears that you are using different versions of Geode in your cluster. Make sure that what you've 'JARed together' does not contain anything else other than your code. Also check the classpath of all components for duplica

Creating Regions Dynamically using Functions

2018-10-30 Thread Marcus Dushshantha Chandradasa
Hi All, I am trying to figure out how to programmatically create Regions on a Geode Cluster. I followed below links but without any success. https://geode.apache.org/docs/guide/16/developing/region_options/dynamic_region_creation.html https://stackoverflow.com/questions/50833166/cannot-create-reg