terraform/backend/remote-state/consul
James Bardin fd9adcdb36 only init one consul client, and lower keepalive
The consul Client is analogous to an http.Client, and we really don't
need more than 1. Configure a single client and store it in the backend.

Replace the default Transport's Dialer to reduce the KeepAlive setting
from 30s to 17s. This avoids racing with the common network timeout
value of 30s, and is also coprime to other common intervals.
2017-10-08 11:51:35 -04:00
..
backend.go only init one consul client, and lower keepalive 2017-10-08 11:51:35 -04:00
backend_state.go only init one consul client, and lower keepalive 2017-10-08 11:51:35 -04:00
backend_test.go Remove consul context adapter for RenewPeriodic 2017-07-20 11:09:45 -04:00
client.go record consul session ID in lock info 2017-10-08 11:24:43 -04:00
client_test.go Test losing and reacquiring a consul lock 2017-05-30 14:38:33 -04:00