You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shardingsphere.apache.org by sunbufu <su...@apache.org> on 2019/12/28 05:47:54 UTC

Discussion of which data should be put in the new registry center and which data should be put in the new config center

Hi all.


We are working on orchestration-5.x as plain (https://github.com/apache/incubator-shardingsphere/issues/3185). And now, we get a question in step 3 to discussion with you.
In step 3, we should replace the call relationship of old registry center by the call relationship of new registry center and new config center, and then we can delete the old registry center. In other words, we should put the data from old registry center in new registry center and new config center. So ** which data should be put in the new registry center and which data should be put in the new config center ? **


The follow is an example data from old registry center :
```
orchestration_ds
    config
        authentication
        props
        schema
            sharing_db
                datasource
                rule
    state
        datasources
        instances
```
 I have discussed with Zonglei and Yuan. We think we can put `config` node in the new config center, cause `config` node include some config data, such as `authentication` have user’s password. the same reason we can put `state` node in the new registry center. But we are not sure about this, can you confirm it for me ?




—————————
Haisheng Sun (sunbufu)
Apache ShardingSphere


Re: Discussion of which data should be put in the new registry center and which data should be put in the new config center

Posted by guangyuan wang <wa...@apache.org>.
This is also in Registry Center for leaf generator.
├──leaf_segment
├      ├──tablename1
├      ├──tablename2
├──leaf_snowflake
├      ├──current-max-work-id
├      ├──serviceId
├      ├    ├──work-id
├      ├    ├──time

sunbufu <su...@apache.org> 于2019年12月29日周日 上午9:11写道:

> Hi.
> The follow is the full old registry center data.
> ```
> ├──config
> ├      ├──authentication                            # Sharding-Proxy
> ├      ├──props                                     # Properties
> configuration
> ├      ├──schema                                    # Schema configuration
> ├      ├      ├──sharding_db                        # SchemaName
> configuration
> ├      ├      ├      ├──datasource                  # Datasource
> configuration
> ├      ├      ├      ├──rule                        # Sharding rule
> configuration
> ├      ├      ├──masterslave_db                     # SchemaName
> configuration
> ├      ├      ├      ├──datasource                  # Datasource
> configuration
> ├      ├      ├      ├──rule                        # Master-slave rule
> ├      ├      ├──encrypt_db                         # SchemaName
> configuration
> ├      ├      ├      ├──datasource                  # Datasource
> configuration
> ├      ├      ├      ├──rule                        # Encrypt rule
> ├──state
> ├      ├──instances
> ├      ├      ├──your_instance_ip_a@-@your_instance_pid_x
> ├      ├      ├──your_instance_ip_b@-@your_instance_pid_y
> ├      ├      ├──....
> ├      ├──datasources
> ├      ├      ├──ds0
> ├      ├      ├──ds1
> ├      ├      ├──....
> ```
>
>
> —————————
> Haisheng Sun (sunbufu)
> Apache ShardingSphere
>
>
> On 12/29/2019 02:32,Zonglei Dong<do...@apache.org> wrote:
> For ConfigCenter, the config info for “Data Masking” should be included.
>
>
> Firstly, I think we should list all the info in the old RegistryCenter,
> then split which should be put into ConfigCenter or RegistryCenter.
>
>
> We can reference the offical document.
>
>
>
> https://shardingsphere.apache.org/document/current/cn/features/orchestration/config-center/
>
>
> https://shardingsphere.apache.org/document/current/cn/features/orchestration/orchestration/
>
>
> https://shardingsphere.apache.org/document/current/cn/features/orchestration/encrypt/
> Zonglei Dong
> Apache ShardingSphere
> On 12/28/2019 20:54,guangyuan wang<wa...@apache.org> wrote:
> For "config" part, masterslave_db should be added.
>
> config
> ├──authentication                            # Sharding-Proxy
> authentication configuration
> ├──props                                     # Properties configuration
> ├──schema                                    # Schema configuration
> ├      ├──sharding_db                        # SchemaName configuration
> ├      ├      ├──datasource                  # Datasource configuration
> ├      ├      ├──rule                        # Sharding rule configuration
> ├      ├──masterslave_db                     # SchemaName configuration
> ├      ├      ├──datasource                  # Datasource configuration
> ├      ├      ├──rule                        # Master-slave rule
> configuration
>
>
> sunbufu <su...@apache.org> 于2019年12月28日周六 下午1:48写道:
>
> Hi all.
>
>
> We are working on orchestration-5.x as plain (
> https://github.com/apache/incubator-shardingsphere/issues/3185). And now,
> we get a question in step 3 to discussion with you.
> In step 3, we should replace the call relationship of old registry center
> by the call relationship of new registry center and new config center, and
> then we can delete the old registry center. In other words, we should put
> the data from old registry center in new registry center and new config
> center. So ** which data should be put in the new registry center and which
> data should be put in the new config center ? **
>
>
> The follow is an example data from old registry center :
> ```
> orchestration_ds
> config
> authentication
> props
> schema
> sharing_db
> datasource
> rule
> state
> datasources
> instances
> ```
> I have discussed with Zonglei and Yuan. We think we can put `config` node
> in the new config center, cause `config` node include some config data,
> such as `authentication` have user’s password. the same reason we can put
> `state` node in the new registry center. But we are not sure about this,
> can you confirm it for me ?
>
>
>
>
> —————————
> Haisheng Sun (sunbufu)
> Apache ShardingSphere
>
>
>

Re: Discussion of which data should be put in the new registry center and which data should be put in the new config center

Posted by sunbufu <su...@apache.org>.
Hi.
The follow is the full old registry center data.
```
├──config
├      ├──authentication                            # Sharding-Proxy
├      ├──props                                     # Properties configuration
├      ├──schema                                    # Schema configuration
├      ├      ├──sharding_db                        # SchemaName configuration
├      ├      ├      ├──datasource                  # Datasource configuration
├      ├      ├      ├──rule                        # Sharding rule configuration
├      ├      ├──masterslave_db                     # SchemaName configuration
├      ├      ├      ├──datasource                  # Datasource configuration
├      ├      ├      ├──rule                        # Master-slave rule
├      ├      ├──encrypt_db                         # SchemaName configuration
├      ├      ├      ├──datasource                  # Datasource configuration
├      ├      ├      ├──rule                        # Encrypt rule
├──state
├      ├──instances
├      ├      ├──your_instance_ip_a@-@your_instance_pid_x
├      ├      ├──your_instance_ip_b@-@your_instance_pid_y
├      ├      ├──....
├      ├──datasources
├      ├      ├──ds0
├      ├      ├──ds1
├      ├      ├──....
```


—————————
Haisheng Sun (sunbufu)
Apache ShardingSphere


On 12/29/2019 02:32,Zonglei Dong<do...@apache.org> wrote:
For ConfigCenter, the config info for “Data Masking” should be included.


Firstly, I think we should list all the info in the old RegistryCenter, then split which should be put into ConfigCenter or RegistryCenter.


We can reference the offical document.


https://shardingsphere.apache.org/document/current/cn/features/orchestration/config-center/      
https://shardingsphere.apache.org/document/current/cn/features/orchestration/orchestration/      
https://shardingsphere.apache.org/document/current/cn/features/orchestration/encrypt/
Zonglei Dong
Apache ShardingSphere
On 12/28/2019 20:54,guangyuan wang<wa...@apache.org> wrote:
For "config" part, masterslave_db should be added.

config
├──authentication                            # Sharding-Proxy
authentication configuration
├──props                                     # Properties configuration
├──schema                                    # Schema configuration
├      ├──sharding_db                        # SchemaName configuration
├      ├      ├──datasource                  # Datasource configuration
├      ├      ├──rule                        # Sharding rule configuration
├      ├──masterslave_db                     # SchemaName configuration
├      ├      ├──datasource                  # Datasource configuration
├      ├      ├──rule                        # Master-slave rule
configuration


sunbufu <su...@apache.org> 于2019年12月28日周六 下午1:48写道:

Hi all.


We are working on orchestration-5.x as plain (
https://github.com/apache/incubator-shardingsphere/issues/3185). And now,
we get a question in step 3 to discussion with you.
In step 3, we should replace the call relationship of old registry center
by the call relationship of new registry center and new config center, and
then we can delete the old registry center. In other words, we should put
the data from old registry center in new registry center and new config
center. So ** which data should be put in the new registry center and which
data should be put in the new config center ? **


The follow is an example data from old registry center :
```
orchestration_ds
config
authentication
props
schema
sharing_db
datasource
rule
state
datasources
instances
```
I have discussed with Zonglei and Yuan. We think we can put `config` node
in the new config center, cause `config` node include some config data,
such as `authentication` have user’s password. the same reason we can put
`state` node in the new registry center. But we are not sure about this,
can you confirm it for me ?




—————————
Haisheng Sun (sunbufu)
Apache ShardingSphere



Re: Discussion of which data should be put in the new registry center and which data should be put in the new config center

Posted by Zonglei Dong <do...@apache.org>.
For ConfigCenter, the config info for “Data Masking” should be included.


Firstly, I think we should list all the info in the old RegistryCenter, then split which should be put into ConfigCenter or RegistryCenter.


We can reference the offical document.


https://shardingsphere.apache.org/document/current/cn/features/orchestration/config-center/      
https://shardingsphere.apache.org/document/current/cn/features/orchestration/orchestration/      
https://shardingsphere.apache.org/document/current/cn/features/orchestration/encrypt/
Zonglei Dong
Apache ShardingSphere
On 12/28/2019 20:54,guangyuan wang<wa...@apache.org> wrote:
For "config" part, masterslave_db should be added.

config
├──authentication                            # Sharding-Proxy
authentication configuration
├──props                                     # Properties configuration
├──schema                                    # Schema configuration
├      ├──sharding_db                        # SchemaName configuration
├      ├      ├──datasource                  # Datasource configuration
├      ├      ├──rule                        # Sharding rule configuration
├      ├──masterslave_db                     # SchemaName configuration
├      ├      ├──datasource                  # Datasource configuration
├      ├      ├──rule                        # Master-slave rule
configuration


sunbufu <su...@apache.org> 于2019年12月28日周六 下午1:48写道:

Hi all.


We are working on orchestration-5.x as plain (
https://github.com/apache/incubator-shardingsphere/issues/3185). And now,
we get a question in step 3 to discussion with you.
In step 3, we should replace the call relationship of old registry center
by the call relationship of new registry center and new config center, and
then we can delete the old registry center. In other words, we should put
the data from old registry center in new registry center and new config
center. So ** which data should be put in the new registry center and which
data should be put in the new config center ? **


The follow is an example data from old registry center :
```
orchestration_ds
config
authentication
props
schema
sharing_db
datasource
rule
state
datasources
instances
```
I have discussed with Zonglei and Yuan. We think we can put `config` node
in the new config center, cause `config` node include some config data,
such as `authentication` have user’s password. the same reason we can put
`state` node in the new registry center. But we are not sure about this,
can you confirm it for me ?




—————————
Haisheng Sun (sunbufu)
Apache ShardingSphere



Re: Discussion of which data should be put in the new registry center and which data should be put in the new config center

Posted by guangyuan wang <wa...@apache.org>.
For "config" part, masterslave_db should be added.

config
    ├──authentication                            # Sharding-Proxy
authentication configuration
    ├──props                                     # Properties configuration
    ├──schema                                    # Schema configuration
    ├      ├──sharding_db                        # SchemaName configuration
    ├      ├      ├──datasource                  # Datasource configuration
    ├      ├      ├──rule                        # Sharding rule configuration
    ├      ├──masterslave_db                     # SchemaName configuration
    ├      ├      ├──datasource                  # Datasource configuration
    ├      ├      ├──rule                        # Master-slave rule
configuration


sunbufu <su...@apache.org> 于2019年12月28日周六 下午1:48写道:

> Hi all.
>
>
> We are working on orchestration-5.x as plain (
> https://github.com/apache/incubator-shardingsphere/issues/3185). And now,
> we get a question in step 3 to discussion with you.
> In step 3, we should replace the call relationship of old registry center
> by the call relationship of new registry center and new config center, and
> then we can delete the old registry center. In other words, we should put
> the data from old registry center in new registry center and new config
> center. So ** which data should be put in the new registry center and which
> data should be put in the new config center ? **
>
>
> The follow is an example data from old registry center :
> ```
> orchestration_ds
>     config
>         authentication
>         props
>         schema
>             sharing_db
>                 datasource
>                 rule
>     state
>         datasources
>         instances
> ```
>  I have discussed with Zonglei and Yuan. We think we can put `config` node
> in the new config center, cause `config` node include some config data,
> such as `authentication` have user’s password. the same reason we can put
> `state` node in the new registry center. But we are not sure about this,
> can you confirm it for me ?
>
>
>
>
> —————————
> Haisheng Sun (sunbufu)
> Apache ShardingSphere
>
>