Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Commit

Permalink
Documentation: Add mysql conn limits (#1947)
Browse files Browse the repository at this point in the history
  • Loading branch information
robusto authored and groob committed Nov 1, 2018
1 parent 3a07a4c commit 510ec10
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions docs/infrastructure/configuring-the-fleet-binary.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,32 @@ The server name or IP address used by the client certificate.
servername: 127.0.0.1
```

##### `mysql_max_open_conns`

Maximum open connections to database

- Default value: 50
- Environment variable: `KOLIDE_MYSQL_MAX_OPEN_CONNS`
- Config file format:

```
mysql:
max_open_conns: 50
```

##### `mysql_max_idle_conns`

Maximum idle connections to database. This value should be equal to or less than `mysql_max_open_conns`

- Default value: 50
- Environment variable: `KOLIDE_MYSQL_MAX_IDLE_CONNS`
- Config file format:

```
mysql:
max_idle_conns: 50
```

#### Redis

##### `redis_address`
Expand Down
2 changes: 1 addition & 1 deletion server/service/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Client struct {

func NewClient(addr string, insecureSkipVerify bool, rootCA string) (*Client, error) {
if !strings.HasPrefix(addr, "https://") {
return nil, errors.New("Addrress must start with https://")
return nil, errors.New("Address must start with https://")
}

baseURL, err := url.Parse(addr)
Expand Down

0 comments on commit 510ec10

Please sign in to comment.