Hi all,

*Problem*

The Registry space provided to each product contains three major partitions.

   - *Local Repository* : Used to store configuration and run time data
   that is local to the server. This partition is not to be shared with
   multiple servers and can be browsed under /_system/local in the registry
   browser.
   - *Configuration Repository* : Used to store product-specific
   configuration. This partition can be shared across multiple instances of
   the same product. (eg: sharing G-Reg configuration across a G-Reg cluster)
   and can be browsed under /_system/config in the registry browser.
   - *Governance Repository* : Used to store configuration and data that
   are shared across the whole platform. This typically includes services,
   service descriptions, endpoints or data sources and can be browsed under
   /_system/governance in the registry browser.


Currently all the resources to be stored in Local, Config, and Governance
registry paths are stored in a single cache instance (with cache id :
REG_CACHE_BACKED_ID).

When clustering is enabled for a node this cache switch to distributed mode
and this results in a distributed Local registry path, which is not the
recommended behavior (Local registry path should not be shared with other
nodes).


*Proposed Solution*

Implement two cache instances to store the registry resources.

   1. Local cache - All the resources that are not  stored in the sub
   directories of the "/_System/config" and "/_System/governance" are stored
   in this cache. This cache instance will not be switched to distributed mode
   in a clustered setup.
   2. Distributed cache - This cache will store all the resources under the
   root directories of "/_System/config" and "/_System/governance". This cache
   instance will be switched to distributed mode in a clustered setup.


Thanks!
Rajith

-- 
Rajith Roshan
Software Engineer, WSO2 Inc.
Mobile: +94-72-642-8350 <%2B94-71-554-8430>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to