Utiliser plusieurs puppet master : performance et haute dispo
-
http://docs.puppetlabs.com/guides/scaling_multiple_masters.htmlComment construire la gem puppetdb-terminus à partir des sources github :
git clone https://github.com/puppetlabs/puppetdb
git checkout 1.6.2
cd puppetdb
cp contrib/gem/puppetdb-terminus.gemspec puppet/
cd puppet
modifier le spec pour mettre version=1.6.2
gem build puppetdb-terminus.gemspec
Installer la gem : gem install puppetdb-terminus-1.6.2.gem
-
https://projects.puppetlabs.com/issues/16529Petit probleme avec pluxml : il forge les url des article avec le nom de l'article... alors quand c'est trop long, apache n'aime pas :
ALERT - configured request variable name length limit exceeded - dropped variable
La directive pour configurer ça : LimitRequestLine
-
http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestlinePour passer certification cisco en candidat libre
-
https://www1.pearsonvue.com/testtaker/registration/Dashboard/CISCOTESTING/585788Pour monitorer en temps réel un nginx
-
https://github.com/lebinh/ngxtopQuelques commandes git expliquées visuellement et dynamiquement
-
http://www.wei-wang.com/ExplainGitWithD3/Deux trois fonctions utiles/méconnues côté client
via Skunnyk
-
http://www.mysqlperformanceblog.com/2014/02/27/dba-101-sometimes-forgotten-functionality-mysql-client/Pour lire un torrent en streaming en utilisant vlc (c'est ce qui est utilisé par popcorn time)
A tester dans le cas ou un toto n'est pas dispo dans PT, comme pour les séries par exemple.
Pourquoi ne pas utiliser utorrent ? Je sais pas pour vous, mais chez moi il met un temps fou à démarrer la lecture en streaming comparé à PT..
-
https://github.com/mafintosh/peerflixFusionner un snapshot
Le but ici est de fusionner un snapshot modifié vers le LV d'origine. Pour ainsi dire, "faire que les modifications apportées sur le snapshot se retrouvent sur le LV d'origine".
lvconvert --merge /path/to/dev/snap
-
http://doc.ubuntu-fr.org/lvm#snapshotdd over ssh
lvcreate vg00 -L 4G -n srv-test-disk #on choisi la même taille (4Go)
mkfs.ext4 /dev/vg00/srv-test-disk
ssh root@srv-xen.domain.com "dd if=/dev/vg00/srv-test-disk" | dd of=/dev/vg00/srv-test-disk
ou avec gzip pour aller BEAUCOUP plus vite
ssh root@srv-xen.domain.com "dd if=/dev/vg00/srv-test-disk | gzip" | gzip -dc | dd of=/dev/vg00/srv-test-disk
-
http://wiki.gonzofamily.com/a/Utilisation_de_Xen#SnapshotsPuppet qui sattaque au monde du reseau avec le nuxus3000 :o
Clin d'oeil à ubiqube
-
http://youtu.be/QExKz-iIpYcIf you have lots of metric names that change (new servers etc) in a defined pattern it is irritating to constantly have to create new dashboards.
With scripted dashboards you can dynamically create your dashboards using javascript. In the folder grafana install folder app/dashboards/ there is a file named scripted.js. This file contains an example of a scripted dashboard. You can access it by using the url:
http://grafana_url/#/dashboard/script/scripted.js?rows=3&name=myName
If you open scripted.js you can see how it reads url paramters from ARGS variable and then adds rows and panels.
-
https://github.com/torkelo/grafana/wiki/Scripted-dashboardsbien utile
cat liste | parallel --gnu -j 10 ssh root@{} 'ls'
-
http://blog.michaelboman.org/2012/04/running-commands-in-parallel-using-bash.htmlSi un jour je fais un peu plus de JS, faudrait faire comme ça
-
http://blog.teamtreehouse.com/unobtrusive-javascript-important