Skip to content

Instantly share code, notes, and snippets.

apiVersion: v1
id: service-wordcloudservice
kind: Template
metadata:
name: service-wordcloudservice
objects:
- apiVersion: v1
id: wordcloudservice
kind: Service
metadata:

Common Resource Kinds

  • replicationController (rc): a controller that makes a best effort to maintain a number of pods running
  • pods: groups of containers controlled by a single rc
  • service (svc): a cluster-internal VIP that is linked to a collection of pods and ports
  • route: An OpenShift construct. Externalizes services so you can reach them from remote machines

Get stuff

oc get [resource-kind]

Get more stuff

Common Resource Kinds

  • replicationController (rc): a controller that makes a best effort to maintain a number of pods running
  • pods: groups of containers controlled by a single rc
  • service (svc): a cluster-internal VIP that is linked to a collection of pods and ports
  • route: An OpenShift construct. Externalizes services so you can reach them from remote machines

Get stuff

oc get [resource-kind]
# @timestamp returns success, but does not insert
$ curl http://api.ciscozeus.io/logs/8dcccc00/hellozeus/ -H "Content-Type: application/json" -d '{"logs":[{"@timestamp": "key"}]}'
{"successful":1}
# timestamp return invalid input error
$ curl http://api.ciscozeus.io/logs/8dcccc00/hellozeus/ -H "Content-Type: application/json" -d '{"logs":[{"timestamp": "key"}]}'
{"successful":0,"error":"invalid input"}
@gitschaub
gitschaub / gist1
Last active February 24, 2017 05:06
[Unit]
Description=Share local port(s) with ngrok
After=syslog.target network.target
[Service]
PrivateTmp=true
Type=simple
User=pi
Restart=always
RestartSec=1min
authtoken: 7dwvpN5kGMQBKEapYDgyL_QCy6wEZqxgdH3qjkbT4h
tunnel:
secret-tunnel:
proto: tcp
addr: 22

Problem as I understand it

Deploying Salt:

  • How to make minions aware of other minions. Cross-minion configuration.
  • Proper ordering of salt states (i.e. Repo.highstate -> base.highstate -> manual stuff -> *.highstate)

Updating configurations:

  • Merging new pillars during an RPM update.
  • Adding/deleting minions from "inventory", handling configuration updates in other minions automatically
  • A/B rollout of new configuration

Definitions

Definitions for all thrift services under libInletCommon/thrift.

See Apache Thrift documentation for details.

API

Inbound Thrift IPC

package main
import (
"encoding/json"
"fmt"
"math/rand"
"os"
"sort"
"time"
)

Data Replication Strategies for Multi Cluster

=============================================

Amazon RDS

https://aws.amazon.com/rds/

Deploy read-only replicas to increase read performance. Available for MySQL, MariaDB, PostgreSQL, Amazon Aurora. Support for running active-standby instances