Hello there,
The regions manually created using the Geode API are not persisted to
the *cluster-configuration-service
[1]*, that's basically the reason why you don't see them after the server
is restarted. It's possible to dig into the source code and persist the
changes yourself (have a look at the *CreateRegionCommand [2]* class), but
it's also something I wouldn't recommend... Instead of that, I'd suggest to
use the *Geode SHell [2]* to manage your regions directly.
Hope this helps.
Best regards.
[1]:
https://geode.apache.org/docs/guide/112/configuring/cluster_config/gfsh_persist.html
[2]:
https://github.com/apache/geode/blob/develop/geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/commands/CreateRegionCommand.java
[3]:
https://geode.apache.org/docs/guide/112/tools_modules/gfsh/chapter_overview.html
On Fri, 22 May 2020 at 04:42, 18911098...@163.com <18911098...@163.com>
wrote:
> dear:
> Dynamically Create Region Demo ,When Geode Server Reboot ,Lost
> Region instance
>
> https://geode.apache.org/docs/guide/112/developing/region_options/dynamic_region_creation.html
>
> I don't know why? Hope to help me, thanks!
>
>
>
> 18911098...@163.com
>
--
Ju@N