Skip to content

Don't disable HTTP keep-alives for remote storage connections.#3173

Merged
brian-brazil merged 1 commit intoprometheus:masterfrom
bboreham:remote-keepalive-2
Oct 5, 2017
Merged

Don't disable HTTP keep-alives for remote storage connections.#3173
brian-brazil merged 1 commit intoprometheus:masterfrom
bboreham:remote-keepalive-2

Conversation

@bboreham
Copy link
Member

Removes configurability introduced in #3160 in favour of hard-coding, per advice from @brian-brazil.

The slightly unwieldy NewClientFromConfigAndOptions() is introduced to avoid changing the 13+ other calls to NewClientFromConfig() in this repo and presumably more downstream.

@brian-brazil
Copy link
Contributor

@fabxc Should we just hardcode to enabled everywhere to make things easier for merging 2.0? https://github.com/prometheus/prometheus/blob/dev-2.0/util/httputil/client.go

@beorn7
Copy link
Member

beorn7 commented Oct 4, 2017

If we switched on keep-alive everywhere in 1.x, we might break people's setup with ulimits on fd count.
I wouldn't like to risk that just for making merging easier.

To get this merged for the 1.8 release, can we keep it the way it currently is in this PR?

@brian-brazil
Copy link
Contributor

I'm okay with merging as-is (or even disabling keep alive for remote read in 1.x and leaving it to 2.x), I would like @fabxc's opinion first though as any merge conflicts with 2.x will mostly affect him.

@brian-brazil
Copy link
Contributor

I've discussed with @fabxc and we'll do things per this PR. Can you make the tests pass?

@bboreham bboreham force-pushed the remote-keepalive-2 branch from 8eeb6c2 to a6cc196 Compare October 5, 2017 11:22
Removes configurability introduced in prometheus#3160 in favour of hard-coding,
per advice from @brian-brazil.
@brian-brazil brian-brazil merged commit a031932 into prometheus:master Oct 5, 2017
@brian-brazil
Copy link
Contributor

Thanks!

tomwilkie pushed a commit to tomwilkie/prometheus that referenced this pull request Oct 26, 2017
… to 2.0 (see prometheus#3173)

Removes configurability introduced in prometheus#3160 in favour of hard-coding,
per advice from @brian-brazil.
tomwilkie added a commit to tomwilkie/prometheus that referenced this pull request Oct 26, 2017
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.

3 participants