Extend LV on VmWare
umount /dev/vg01/lvname
echo 1 > /sys/class/scsi_device/0\:0\:0\:0/device/rescan
fdisk /dev/sda
# d
# 3
# n
# p
| #!/usr/bin/env node | |
| var clusterMaster = require("cluster-master") | |
| clusterMaster({ | |
| exec: "proxy.js", | |
| // exec: "proxy-simple.js", | |
| size: 2, | |
| silent: false, | |
| signals: true, | |
| repl: '/root/cluster-master.socket' | |
| }) |
| #!/usr/bin/env ruby | |
| # This script is equivalent to a `docker run` that would stay attached when containers restart. | |
| require 'open3' | |
| require 'time' | |
| cmd = ["/usr/bin/docker", "run", "-d"] + ARGF.argv | |
| Open3.popen3(*cmd) do |stdin, stdout, stderr, thread| | |
| puts stderr.read | |
| exit_status = thread.value |
Extend LV on VmWare
umount /dev/vg01/lvname
echo 1 > /sys/class/scsi_device/0\:0\:0\:0/device/rescan
fdisk /dev/sda
# d
# 3
# n
# p
$ hpacucli
=> ctrl all show status
=> ctrl slot=0 create type=ld drives=1I:1:3,1I:1:4,2I:1:6,2I:1:7 raid=1+0
$ parted /dev/sdb
(parted) mklabel gpt
(parted) mkpart
Partition name? []?
Execute the following command to create a self signed certificate
openssl genrsa -out private.key 2048
openssl req -nodes -x509 -days 3650 -config ssl.cnf -new -key private.key -out example.com
| # Contributor: Filirom1 <[email protected]> | |
| # Maintainer: Filirom1 <[email protected]> | |
| pkgname=elasticsearch | |
| pkgver=1.5.0 | |
| pkgrel=0 | |
| pkgdesc="Open Source, Distributed, RESTful Search Engine" | |
| url="https://github.com/elastic/elasticsearch" | |
| pkgusers="elasticsearch" | |
| pkggroups="elasticsearch" | |
| arch="all" |
| # hpssacli | |
| HP Smart Storage Administrator CLI 2.0.23.0 | |
| Detecting Controllers...Done. | |
| Type "help" for a list of supported commands. | |
| Type "exit" to close the console. | |
| => ctrl slot=2 pd all show | |
| Smart Array P420 in Slot 2 |
Givena an elasticsearch repo, launch the command below to create a mirror
$ reposync --repoid elasticsearch-1.4 -p /path/to/mirror
First start ES with /etc/elasticsearch/default-mapping.json, then index several documents with inner objects
curl -XPOST -d '{"key":{"subkey1":1, "subkey2":1}}' localhost:9200/toto/toto/1
curl -XPOST -d '{"key2":{"subkey1":1, "subkey2":1}}' localhost:9200/toto/toto/2
curl -XPOST -d '{"key3":{"subkey1":1, "subkey2":1}}' localhost:9200/toto/toto/3
Finally, launch the query
Kibana Multi Tenant.
This is a nodejs reverse proxy for Kibana that create dedicated environment(own config, own dashboard, own saved search, ...) for each subdomains.
You need to patch kibana,
- var maybeKibanaIndex = (maybeIndex === config.kibana.kibana_index);