Compare commits

...

6 commits

Author SHA1 Message Date
Cody Soyland
03e92987cb
Merge pull request #961 from codysoyland/release-v0.7.2
Release v0.7.2
2017-11-15 11:30:34 -06:00
Cody Soyland
2f21b0addb Release v0.7.2 2017-11-15 08:29:08 -06:00
Matthew Jaffee
9ed91cac28
Merge pull request #920 from jaffee/v0.7
bump http client's MaxIdleConns and MaxIdleConnsPerHost
2017-11-02 13:59:33 -05:00
Matthew Jaffee
97eef1ff90
revert back to 200 idle conns per host
CI error appears unrelated to this setting
2017-11-01 12:55:37 -05:00
Matthew Jaffee
17c90c7ec3
decrease maxIdleConnsPerHost
test were failing in CI
2017-11-01 11:32:57 -05:00
Matthew Jaffee
53d4e5ee17
bump http client's MaxIdleConns and MaxIdleConnsPerHost
The idea here is for Pilosa to behave better under high query load where a node
might be making many connections to the other nodes in the cluster in order to
support lots of concurrent batches of SetBit queries (for example). By allowing
for more idle connections and more idle connections per host, we reduce
connection churn, and allow more connections to be reused rather than creating
new ones and potentially having many stale sockets in the TIME_WAIT state. See
https://github.com/golang/go/issues/16012
2017-10-31 16:44:03 -05:00
4 changed files with 33 additions and 8 deletions

View file

@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.7.2] - 2017-11-15
This version contains 1 contribution from 1 contributor. There is 1 file changed, 16 insertions, and 1 deletion.
### Changed
- Bump HTTP client's MaxIdleConns and MaxIdleConnsPerHost ([#920](https://github.com/pilosa/pilosa/pull/920))
## [0.7.1] - 2017-10-09
This version contains 3 contributions from 3 contributors. There are 14 files changed, 221 insertions, and 52 deletions.
@ -163,3 +171,5 @@ This version contains 53 contributions from 13 contributors (including 4 volunte
[Unreleased]: https://github.com/pilosa/pilosa/compare/v0.5...HEAD
[0.4.0]: https://github.com/pilosa/pilosa/compare/v0.3...v0.4
[0.5.0]: https://github.com/pilosa/pilosa/compare/v0.4...v0.5
[0.6.0]: https://github.com/pilosa/pilosa/compare/v0.5...v0.6
[0.7.0]: https://github.com/pilosa/pilosa/compare/v0.6...v0.7

View file

@ -1,4 +1,4 @@
FROM golang:1.9.1 as builder
FROM golang:1.9.2 as builder
ARG ldflags=''

View file

@ -74,19 +74,19 @@ There are four ways to install Pilosa on MacOS: Use [Homebrew](https://brew.sh/)
1. Download the latest release:
```
curl -L -O https://github.com/pilosa/pilosa/releases/download/v0.7.1/pilosa-v0.7.1-darwin-amd64.tar.gz
curl -L -O https://github.com/pilosa/pilosa/releases/download/v0.7.2/pilosa-v0.7.2-darwin-amd64.tar.gz
```
Other releases can be downloaded from our Releases page on Github.
2. Extract the binary:
```
tar xfz pilosa-v0.7.1-darwin-amd64.tar.gz
tar xfz pilosa-v0.7.2-darwin-amd64.tar.gz
```
3. Move the binary into your PATH so you can run `pilosa` from any shell:
```
cp -i pilosa-v0.7.1-darwin-amd64/pilosa /usr/local/bin
cp -i pilosa-v0.7.2-darwin-amd64/pilosa /usr/local/bin
```
4. Make sure Pilosa is installed successfully:
@ -228,19 +228,19 @@ There are three ways to install Pilosa on Linux: download the binary (recommende
1. To install the latest version of Pilosa, download the latest release:
```
curl -L -O https://github.com/pilosa/pilosa/releases/download/v0.7.1/pilosa-v0.7.1-linux-amd64.tar.gz
curl -L -O https://github.com/pilosa/pilosa/releases/download/v0.7.2/pilosa-v0.7.2-linux-amd64.tar.gz
```
Note: This assumes you are using an `amd64` compatible architecture. Other releases can be downloaded from our Releases page on Github.
2. Extract the binary:
```
tar xfz pilosa-v0.7.1-linux-amd64.tar.gz
tar xfz pilosa-v0.7.2-linux-amd64.tar.gz
```
3. Move the binary into your PATH so you can run `pilosa` from any shell:
```
cp -i pilosa-v0.7.1-linux-amd64/pilosa /usr/local/bin
cp -i pilosa-v0.7.2-linux-amd64/pilosa /usr/local/bin
```
4. Make sure Pilosa is installed successfully:

View file

@ -20,6 +20,7 @@ import (
"errors"
"fmt"
"io/ioutil"
"net"
"net/http"
"net/url"
"sort"
@ -57,7 +58,21 @@ type Executor struct {
// NewExecutor returns a new instance of Executor.
func NewExecutor() *Executor {
return &Executor{
HTTPClient: http.DefaultClient,
HTTPClient: &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
DualStack: true,
}).DialContext,
MaxIdleConns: 1000,
MaxIdleConnsPerHost: 200,
IdleConnTimeout: 90 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
},
},
}
}