Hi Bernard,

On Wed, Dec 18, 2019 at 3:37 PM Bernard Paris <[email protected]>
wrote:

> Hello,
>
> It is not clear to me what to do with CARBON_DB setup for nodes in a
> WSO2-IS cluster env.
>
> The documentation at
> https://is.docs.wso2.com/en/5.9.0/setup/deployment-guide/
> says that
> "In this cluster setup, we use the default h2 database as the local
> registry in each node individually and the governance and configuration
> registries should be mounted to share across all nodes"
>
> But documentation also warns  "Embedded H2 is NOT RECOMMENDED in
> production", and I can confirm we have had problems in the past while being
> unable  to revover H2 datas so we want mysql.
>
> Reading
> https://is.docs.wso2.com/en/5.9.0/administer/working-with-the-registry/
> tells that the local reg is not to be share.
>
> So I undestand that
>  > local registry will be in CARBON_DB, which is not to be shared -->  we
> have to setup one CARBON_DB for each node
>
Yes your understanding is correct. Local Registry (dbConfig
name="wso2registry") in the registry.xml file is by default pointing to the
CARBON_DB. Local registry stores individual node specific data so it should
not be shared across other nodes in the cluster. Ideally you can use
embedded H2 for the local registry, however if you want to setup mysql then
you have to setup mySQL DB per each node.

> >  governance and configuration registries  will be in a unique and shared
> DB
>
Governance and config registries contain data that needs to be shared
across all the nodes in the cluster so they should be pointing to a single
database from all the nodes. Please refer 'Mounting the registry' section
in [1] to understand further regarding this.

[1] https://docs.wso2.com/display/IS570/Setting+Up+Deployment+Pattern+1

>
> It this correct ?
> Thanks
> Bernard
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
Sathya Bandara
Senior Software Engineer
Blog: https://medium.com/@technospace
WSO2 Inc. http://wso2.com
Mobile: (+94) 715 360 421

<+94%2071%20411%205032>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to