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

clusterID flag added for alpha sentry reports (gql-services) #7580

Merged
merged 2 commits into from
Mar 16, 2021

Conversation

thsubaku9-pro
Copy link
Contributor

@thsubaku9-pro thsubaku9-pro commented Mar 16, 2021

cluster ID flag for providing the same via flag -- reason for dgraph/cmd/zero/run.go changes
provided cluster ID should be set to alphas from Zero.Conf -- reason for dgraph/cmd/zero/raft.go changes

(images aren't made if dir linux already exists, adding -p takes care of it -- reason for Makefile changes)


This change is Reviewable

Copy link
Contributor

@aman-bansal aman-bansal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @jarifibrahim, @manishrjain, @thsubaku9-dgraph, and @vvbalaji-dgraph)


dgraph/cmd/zero/raft.go, line 534 at r1 (raw file):

		id := uuid.New().String()

		if zero_cid := Zero.Conf.GetString("cid"); len(zero_cid) > 0 {

we don't use snake case of variable naming in go. use camelcase

@aman-bansal
Copy link
Contributor

QQ, why do we need custom cluster id? any specific use case?

camelCase it is
@jarifibrahim
Copy link
Contributor

QQ, why do we need custom cluster id? any specific use case?

This will be used to tag specific clusters in sentry. The CID is used only in sentry.

Copy link
Contributor

@jarifibrahim jarifibrahim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thsubaku9-pro thsubaku9-pro merged commit e8b78b7 into master Mar 16, 2021
@aman-bansal aman-bansal deleted the kaustubh/clusterID-gqlServices branch March 18, 2021 16:53
aman-bansal pushed a commit that referenced this pull request Apr 7, 2021
* clusterID flag added for alpha sentry reports (gql-services)

* Update raft.go

camelCase it is
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants