Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Unique EcChronos ID #678 #713

Draft
wants to merge 1 commit into
base: agent/master
Choose a base branch
from

Conversation

SajidRiaz138
Copy link
Contributor

here is first idea to generate and persist unique id for ecchronos id that is partition key for other nodes_sync table.

- Generate eccrhonos_Id that should be unique (uuid + host name)
- on start up instance, first check nodes_metadata
table for ecchronosId, if it already exists, use that
one, otherwise generate now one.
- So due to persistence of eccronosId, it would be same
even instance get reinstalled or restart.
- when instance try to acquire nodes then add this
newly ecchronosId into nodes_metadata table with datacenter
and nodeId.
- The new table nodes_metadata schenma, datacenter is partition key
and nodeId is clustering colum and ecchrons_id coulum would hold the
Id.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant