Skip to content

Latency measures#24

Open
chiragbytes7 wants to merge 2 commits into
couchbaselabs:mainfrom
chiragbytes7:latency-measures-elastic
Open

Latency measures#24
chiragbytes7 wants to merge 2 commits into
couchbaselabs:mainfrom
chiragbytes7:latency-measures-elastic

Conversation

@chiragbytes7

Copy link
Copy Markdown
Contributor

Percentile Latency measures with the Go implementation of HDR histogram by Elastic

@chiragbytes7

Copy link
Copy Markdown
Contributor Author

pure go implementation, no transitive deps.

Comment thread src/gorgon/cmd/runner.go Outdated
this timeout will be used to set the max value in the ldr histogram, prevents circular dependency
@chiragbytes7 chiragbytes7 force-pushed the latency-measures-elastic branch from 5ba2f4f to 9975f36 Compare May 21, 2026 07:52
@pavlosg

pavlosg commented May 21, 2026

Copy link
Copy Markdown
Collaborator

I'm not convinced that persisting those values somewhere no-one will look is useful. It would be better to log it. (logs are already persisted)

@chiragbytes7

chiragbytes7 commented May 22, 2026

Copy link
Copy Markdown
Contributor Author

okay, making the change to just log them. removed the extra struct used for marshalling etc.

@chiragbytes7 chiragbytes7 force-pushed the latency-measures-elastic branch from 9975f36 to dfa5418 Compare May 22, 2026 06:07

func (db *database) SetOptions(opt *gorgon.Options) error {
db.options = opt
opt.OperationTimeout = *db.config.Timeout // Set Timeout for upper bound of latency histogram

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That's a backwards way to do it. If you want to have the timeout in the options, make it explicit in gorgon. Then use the gorgon option in the couchbase db (i.e. remove the timeout from the db config).

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.

2 participants