---
name: etcd
templates:
  etcd_bosh_utils.sh.erb: bin/etcd_bosh_utils.sh
  etcd_ctl.erb: bin/etcd_ctl
  drain: bin/drain
packages:
  - pid_utils
  - etcd

properties:
  diego.etcd.heartbeat_interval_in_milliseconds:
    description: "Interval between heartbeats in milliseconds. See https://coreos.com/docs/cluster-management/debugging/etcd-tuning"
    default: 50
  diego.etcd.election_timeout_in_milliseconds:
    description: "Time without recieving a heartbeat before peer should attempt to become leader in milliseconds. See https://coreos.com/docs/cluster-management/debugging/etcd-tuning"
    default: 1000
  diego.etcd.machines:
    description: "IPs of etcd machines"
  diego.etcd.log_sync_timeout_in_seconds:
    description: "Time to wait for a joining node to finish syncing logs with the existing cluster in seconds"
    default: 30
