Skip to content

Instantly share code, notes, and snippets.

@tamalsaha
Last active May 8, 2018 02:38
Show Gist options
  • Save tamalsaha/477a2afc3b8634877399d9b98c1dee21 to your computer and use it in GitHub Desktop.
Save tamalsaha/477a2afc3b8634877399d9b98c1dee21 to your computer and use it in GitHub Desktop.
etcd membership
{
    "signing": {
        "default": {
            "expiry": "43800h"
        },
        "profiles": {
            "server": {
                "expiry": "43800h",
                "usages": [
                    "signing",
                    "key encipherment",
                    "server auth"
                ]
            },
            "client": {
                "expiry": "43800h",
                "usages": [
                    "signing",
                    "key encipherment",
                    "client auth"
                ]
            },
            "peer": {
                "expiry": "43800h",
                "usages": [
                    "signing",
                    "key encipherment",
                    "server auth",
                    "client auth"
                ]
            }
        }
    }
}

initial-cluster-token: If you are spinning up multiple clusters (or creating and destroying a single cluster) with same configuration for testing purpose, it is highly recommended that you specify a unique initial-cluster-token for the different clusters. By doing this, etcd can generate unique cluster IDs and member IDs for the clusters even if they otherwise have the exact same configuration. This can protect you from cross-cluster-interaction, which might corrupt your clusters.

Raft:

Video:

@tamalsaha
Copy link
Author

@tamalsaha
Copy link
Author

@tamalsaha
Copy link
Author

tamalsaha commented Apr 9, 2018

@tamalsaha
Copy link
Author

@tamalsaha
Copy link
Author

		ECO: operator.Config{
			UnhealthyMemberTTL: 2 * time.Minute,
			Etcd: etcd.EtcdConfiguration{
				DataDir: "/var/lib/etcd",
				PeerTransportSecurity: etcd.SecurityConfig{
					AutoTLS: true,
				},
				BackendQuota: 2 * 1024 * 1024 * 1024,
			},
			Snapshot: snapshot.Config{
				Interval: 30 * time.Minute,
				TTL:      24 * time.Hour,
			},
		},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment