Ok donc cet article m'a été vraiment utile.. à garder en cas d'autres problèmes avec ES
for shard in $(curl -XGET http://localhost:9200/_cat/shards | grep UNASSIGNED | awk '{print $2}'); do
curl -XPOST 'localhost:9200/_cluster/reroute' -d '{
"commands" : [ {
"allocate" : {
"index" : "t37",
"shard" : $shard,
"node" : "datanode15",
"allow_primary" : true
}
}
]
}'
sleep 5
done
-
https://t37.net/how-to-fix-your-elasticsearch-cluster-stuck-in-initializing-shards-mode.htmlletsencrypt frontend
This website is static, so it can be saved and loaded locally. Just right-click and "Save Page As.."!
Released under MIT license | Source code: https://github.com/diafygi/gethttpsforfree
-
https://gethttpsforfree.com/Un petit script pour check si les modules ont de nouvelles version dispo (il faut jq)
#!/bin/bash
modules=$(puppet module list|grep '\(v[0-9]\.[0-9]\.[0-9]\)')
IFS=$'\n'
for line in $modules; do
name=$(echo $line|cut -d' ' -f2)
version=$(echo $line|grep -o '\(v[0-9]\.[0-9]\.[0-9]\)'|sed 's/v//')
current_version=$(curl -s https://forgeapi.puppetlabs.com/v3/modules/${name}|jq '.current_release.version'|sed 's/"//g')
if [[ $version == $current_version ]]; then
echo "OK $name $version $current_version"
else
echo "OUTDATED $name $version $current_version"
fi
done
-
https://links.infomee.fr/?6tdMVA[Unit]
Description=Kibana 4
[Service]
Type=simple
User=logstash
Environment=CONFIG_PATH=/opt/kibana/config/kibana.yml
Environment=NODE_ENV=production
ExecStart=/opt/kibana/node/bin/node /opt/kibana/src/cli
[Install]
WantedBy=multi-user.target
-
https://links.infomee.fr/?ynURrgOn the isolated_nw which was user defined, the Docker network feature updated the /etc/hosts with the proper name resolution. Inside of container2 it is possible to ping container3 by name.
-
https://docs.docker.com/engine/userguide/networking/work-with-networks/La doc évolue vite au fur et à mesure des versions.. en la relisant j'ai appris plein de nouvelles choses
-
https://docs.docker.com/engine/userguide/networking/dockernetworks/Cette solution semble etre un bon compromis quand on veut du lien bidirectionnel (ce qui n'est pas possible avec les links) :
http://sgillis.github.io/posts/2015-03-23-docker-dns.html
https://github.com/tonistiigi/dnsdock
-
http://abdelrahmanhosny.com/2015/07/01/3-solutions-to-bi-directional-linking-problem-in-docker-compose/Pour grapher le cputime cumulé de certains process
ps -e --format pid,time
L'inconvénient c'est que la valeur retournée est dans un format batard..
Le mieux ce serait de l'avoir en seconde, comme le etimes
-
http://unix.stackexchange.com/questions/156607/format-cputime-for-ps