menghaoranss opened a new issue #14254:
URL: https://github.com/apache/shardingsphere/issues/14254


   We must manually configure the `work-id` for distributed key generator 
algorithm just as follows:
   
   ```
   keyGenerators:
       snowflake:
         type: SNOWFLAKE
         props:
           worker-id: 123
   ```
   
   For the cluster mode, we cannot specify different `work-id` for all 
instances. Therefore, we consider using the automatically generated 
`instance-id` instead of the manually configured `work-id`, and provide 
different generation algorithms for the Memory/Standalone/Cluster mode. After 
that, we no longer need to configure the `work-id`:
   
   ```
   keyGenerators:
       snowflake:
         type: SNOWFLAKE
   ```
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to