Skip to content

Instantly share code, notes, and snippets.

@vishnu2kmohan
vishnu2kmohan / Project-Plan-Options.md
Last active February 26, 2026 23:31
Project Plan Options

Customer Deployment Project Plans

Context

Two project plan templates (as Mermaid Gantt charts) for deploying the product at customer sites. The two models differ in who manages the deployment lifecycle:

  1. Vendor-Managed — The vendor provisions, deploys, and operates the platform; the customer approves changes
  2. Customer-Managed — Customer IT handles provisioning and operations; the vendor trains and advises

Both models deploy Staging + Production environments (separate GKE clusters each). The customer always provides a GCP project, VPC, and on-prem connectivity as prerequisites.

@vishnu2kmohan
vishnu2kmohan / load-bouncer-datastore-data.py
Created May 7, 2017 22:28
Load DC/OS Bouncer Datastore from a JSON File: bouncer-datastore-data.json
from kazoo.client import KazooClient
DCOS_ZK_HOSTS='zk-1.zk:2181,zk-2.zk:2181,zk-3.zk:2181,zk-4.zk:2181,zk-5.zk:2181'
DCOS_ZK_AUTH_TYPE='digest'
DCOS_ZK_CREDS='super:secret'
DCOS_ZK_AUTH_DATA=[(DCOS_ZK_AUTH_TYPE, DCOS_ZK_CREDS)]
DCOS_BOUNCER_LOCK_PATH='/bouncer/datastore/locking'
DCOS_BOUNCER_DATA_PATH='/bouncer/datastore/data.json'
@vishnu2kmohan
vishnu2kmohan / get-bouncer-datastore-data.py
Created May 7, 2017 22:27
Get DC/OS Bouncer Datastore Contents
from kazoo.client import KazooClient
DCOS_ZK_HOSTS='zk-1.zk:2181,zk-2.zk:2181,zk-3.zk:2181,zk-4.zk:2181,zk-5.zk:2181'
DCOS_ZK_AUTH_TYPE='digest'
DCOS_ZK_CREDS='super:secret'
DCOS_ZK_AUTH_DATA=[(DCOS_ZK_AUTH_TYPE, DCOS_ZK_CREDS)]
DCOS_BOUNCER_LOCK_PATH='/bouncer/datastore/locking'
DCOS_BOUNCER_DATA_PATH='/bouncer/datastore/data.json'
@vishnu2kmohan
vishnu2kmohan / ZK-Bouncer-Troubleshoot.md
Last active May 1, 2017 18:54
Troubleshoot Zookeeper and Bouncer

Check Disk Latency

time dd if=/dev/zero of=/var/lib/dcos/exhibitor/dd_test bs=1M count=1024 oflag=direct && rm /var/lib/dcos/exhibitor/dd_test

Monitor iostat -p sda -m -x 1 while the dd runs.

Check CPU flags for Crypto Acceleration

cat /proc/cpuinfo

@vishnu2kmohan
vishnu2kmohan / service-account-bench.sh
Last active May 8, 2017 13:49
Service Account Benchmark
#!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
private_key="service-account-bench-id_rsa"
public_key="service-account-bench-id_rsa.pub"
echo -n "Creating Service Account Keypair (4096 bit): "
(/usr/bin/time -f "real %e user %U sys %S" \
dcos security org service-accounts keypair \
## list-completed-non-star-frameworks.sh
#/usr/bin/env bash
set -o errexit -o nounset -o pipefail
curl -skSL \
-H "Authorization: token=$(dcos config show core.dcos_acs_token)" \
-H "Content-Type: application/json" \
$(dcos config show core.dcos_url)/mesos/state | \