Skip to content

Instantly share code, notes, and snippets.

View ngtuna's full-sized avatar

Tuna ngtuna

View GitHub Profile
$ kubectl -n tuna logs -f redis-3369877259-m5v6z
1:C 25 Nov 16:26:39.148 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 25 Nov 16:26:39.148 # Redis version=4.0.2, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 25 Nov 16:26:39.148 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 25 Nov 16:26:39.167 * Running mode=standalone, port=6379.
1:M 25 Nov 16:26:39.167 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
1:M 25 Nov 16:26:39.167 # Server initialized
1:M 25 Nov 16:26:39.168 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open ofbiz-2017.11.08 TR2DT6r5Sl-T6ivR4FsXjQ 5 1 450786 0 391.6mb 391.6mb
yellow open ofbiz-2017.11.13 2fsWQ7NkRbW5laXqwvvaeQ 5 1 1113388 0 1007.4mb 1007.4mb
yellow open test-ofbiz-2017.11.23 V8XiH8PhQny3GkNUpp9bAQ 5 1 17061811 0 11.3gb 11.3gb
yellow open nginx-2017.11.10 -LYSoW9jTSSUrvBYk8-21g 5 1 260719 0 152.2mb 152.2mb
yellow open ofbiz-2017.11.02 oWNnqASSTgGhexMXsEgKIQ 5 1 438497 0 322.4mb 322.4mb
yellow open ofbiz-2017.11.24 rJVu2hOfSnqkZMzxYYoe7A 5 1 1174561 0 862.5mb 862.5mb
yellow open ofbiz-2017.11.16 8GwvCEd3S-CTuwBUWDMfxA 5 1 915274 0 801.7mb 801.7mb
yellow open ofbiz-2017.11.23 UoY3bAXoS5uZ-zauJfpRiQ 5 1
root@elasticsearch-elk-3026517596-nkm5n:/usr/share/elasticsearch/data/nodes/0# ls -la indices/
total 360
drwxr-xr-x 8 elasticsearch elasticsearch 4096 Nov 11 07:00 -AlzWN6IQi6o64chW_FUFA
drwxr-xr-x 8 elasticsearch elasticsearch 4096 Nov 10 07:00 -LYSoW9jTSSUrvBYk8-21g
drwxr-xr-x 90 elasticsearch elasticsearch 4096 Nov 28 00:00 .
drwxr-xr-x 4 elasticsearch elasticsearch 4096 Aug 19 23:10 ..
drwxr-xr-x 8 elasticsearch elasticsearch 4096 Nov 17 07:00 0OUyGtQIRh2TyvZbbDUx1A
drwxr-xr-x 8 elasticsearch elasticsearch 4096 Nov 5 07:00 0msU5uXOQauWBC53kMfO5g
drwxr-xr-x 8 elasticsearch elasticsearch 4096 Nov 2 07:00 1ZZQ7Z6NQh2VUEOwIlE3Eg
drwxr-xr-x 8 elasticsearch elasticsearch 4096 Nov 12 07:00 1gOohCWITeu_EbVCdkW7Xw
$ kubectl logs -n custom-metrics custom-metrics-apiserver-812990528-zc5zr -f
I0809 11:40:01.652887 1 serving.go:279] Generated self-signed cert (apiserver.local.config/certificates/apiserver.crt, apiserver.local.config/certificates/apiserver.key)
I0809 11:40:03.549396 1 round_trippers.go:386] curl -k -v -XGET -H "User-Agent: adapter/v0.0.0 (linux/amd64) kubernetes/$Format" -H "Accept: application/json, */*" -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJjdXN0b20tbWV0cmljcyIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJjdXN0b20tbWV0cmljcy1hcGlzZXJ2ZXItdG9rZW4tODNzaDkiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiY3VzdG9tLW1ldHJpY3MtYXBpc2VydmVyIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQudWlkIjoiODEzOThlMDAtN2NmNi0xMWU3LTg5NmQtMDgwMDI3NGE0ZjNiIiwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50OmN1c3RvbS1tZXRyaWNzOmN1c3RvbS1tZXRyaWNzL
version: '2'
services:
zookeeper:
image: 'bitnami/zookeeper:latest'
volumes:
- 'zookeeper_data:/var/zookeeper'
ports:
- '2181:2181'
kafka:
depends_on:
@ngtuna
ngtuna / ServiceConfigV2
Last active March 19, 2016 23:30
New ServiceConfig struct for composefile v2.
type Build struct {
Context string `yaml:"context, omitempty"`
Dockerfile string `yaml:"context, omitempty"`
Args MaporEqualSlice `yaml:"args, omitempty"`
}
type Log struct {
Driver strings `yaml:"driver, omitempty"`
options MaporColonSlice `yaml:"options, omitempty"`
}
root@ip-10-10-10-14:~/gocode/src/github.com/skippbox/kcompose# make binary
docker build -t "libcompose-dev:kcompose" .
Sending build context to Docker daemon 17.44 MB
Step 0 : FROM golang:1.4.2-cross
---> b99ec45c9d74
Step 1 : RUN apt-get update && apt-get install -y iptables build-essential --no-install-recommends
---> Using cache
---> 7d9e5ffc6131
Step 2 : RUN go get github.com/mitchellh/gox
---> Using cache
@ngtuna
ngtuna / bosh task 510 log
Created July 28, 2015 02:40
bosh task 510 log
This file has been truncated, but you can view the full file.
root@ubuntu:~# bosh task 510 --debug
Director task 510
I, [2015-07-28T02:31:46.181554 #1029] [0x3fc04bd7332c] INFO -- TaskHelper: Director Version: 1.2968.0
I, [2015-07-28T02:31:46.181773 #1029] [0x3fc04bd7332c] INFO -- TaskHelper: Enqueuing task: 510
I, [2015-07-28 02:31:47 #12250] [] INFO -- DirectorJobRunner: Looking for task with task id 510
D, [2015-07-28 02:31:47 #12250] [] DEBUG -- DirectorJobRunner: (0.001074s) SELECT NULL
D, [2015-07-28 02:31:47 #12250] [] DEBUG -- DirectorJobRunner: (0.000237s) SELECT * FROM "tasks" WHERE "id" = 510
I, [2015-07-28 02:31:47 #12250] [] INFO -- DirectorJobRunner: Starting task: 510
I, [2015-07-28 02:31:47 #12250] [task:510] INFO -- DirectorJobRunner: Creating job
@ngtuna
ngtuna / bosh deploy log
Created July 28, 2015 02:35
bosh deploy log
root@ubuntu:~# bosh deployment /root/citus-installation/manifest/cf-openstack-ftel-210-HA.yml
Deployment set to `/root/citus-installation/manifest/cf-openstack-ftel-210-HA.yml'
root@ubuntu:~# bosh -n deploy
Processing deployment manifest
------------------------------
Getting deployment properties from director...
Compiling deployment manifest...
Deploying
root@ubuntu:~# curl -s -X POST http://10.10.0.9:5000/v2.0/tokens -H "Content-Type: application/json" -d '{"auth": {"tenantName": "'"FSoft Citus"'", "passwordCredentials": {"username": "'"tuna7"'", "password": "'"ghi@789"'"}}}'
{"access": {"token": {"issued_at": "2015-03-27T09:13:22.003318", "expires": "2015-03-27T10:13:21Z", "id": "MIILHgYJKoZIhvcNAQcCoIILDzCCCwsCAQExCTAHBgUrDgMCGjCCCXQGCSqGSIb3DQEHAaCCCWUEgglheyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNS0wMy0yN1QwOToxMzoyMi4wMDMzMTgiLCAiZXhwaXJlcyI6ICIyMDE1LTAzLTI3VDEwOjEzOjIxWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkhvc3QgQ2l0dXMgQ2xvdWQgZm9yIEZTb2Z0ICYgRklNIiwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiZTQ1YTM3YjM0OWRkNGE1Njk5YjNjODIxZDA0MGVkM2MiLCAibmFtZSI6ICJGU29mdCBDaXR1cyJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjEwLjAuOTo4Nzc0L3YyL2U0NWEzN2IzNDlkZDRhNTY5OWIzYzgyMWQwNDBlZDNjIiwgInJlZ2lvbiI6ICJyZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovLzEwLjEwLjAuOTo4Nzc0L3YyL2U0NWEzN2IzNDlkZDRhNTY5OW