Elasticsearch tips #2: modifying and removing index settings

Elasticsearch tip #2:

TL;DR: configure an index setting to null, to use the default

Quite often you might need to change an elasticsearch' index setting to something else than the default, e.g. to manually control the shard allocation process (allocating specific indices only on specific nodes):

# curl -XPUT …
more…

Ansible: Using conditional role dependencies

TL;DR: You can use when: in ${role}/meta/main.yml

A while ago I started using Ansible to provision some aspects of my lab and servers. At some point, for one of the roles being worked on (some elasticsearch mini-cluster in this particular case), a specific role needed to …

more…

Logstash tips #1: Measuring logstash performance

Earlier, I've mentioned that I intend to start a series of short notes and tips. Today, a new tip.

Logstash tip #1: measuring logstash performance

TL;DR: use the 'metrics' filter to gather metrics about your logstash instance.

A while ago I started using logstash for, well, collecting some logs …

more…

Elasticsearch tips #1: deploying Elasticsearch to multi-homed servers

I figured I should start a series of short notes (can't call them articles) about random stuff I encounter in my day-to-day job, and which took me some time to figure out. Here we go.

Elasticsearch tip #1:

TL;DR: make use of the network.publish_host setting when deploying ES …

more…

My .fluxbox/keys

Just for future reference. If you want - use it, at your own risk ;)

# click on the desktop to get menus
OnDesktop Mouse1 :HideMenus
OnDesktop Mouse2 :WorkspaceMenu
OnDesktop Mouse3 :RootMenu

# scroll on the desktop to change workspaces
OnDesktop Mouse4 :PrevWorkspace
OnDesktop Mouse5 :NextWorkspace

# scroll on the toolbar to change current window …
more…

Blog update

A short update for the few people that read this: I moved away from blogger. Too feature-rich for the type of content I'm aiming for. Why should anyone need to wait on 2-3 js libs and a bunch of images when all the blog has is usually plain text content …

more…

updating a github forked repository

For people hacking on stuff using github repos:
Whenever you fork someone else's repo, make some changes to it, and then want to update your repo with the changes made upstream by the author, it's easy enough as:

# Add the remote, call it "upstream":  
git remote add upstream https://github …
more…

found it... sieveshell

If you're wondering how to install sieveshell on Ubuntu (12.X), search no more, there's no such package. Instead, this tool is contained in the cyrus-admin package. Just do an aptitude install cyrus-admin and you're set!

more…

yay! tmux

It's been a long time since I've posted anything in here. In the meantime, I've changed my job (2 times), I've moved to another country :)

Just started using tmux, as a replacement for GNU screen. So far - so good, except that the default C-b control combination is not too convenient …

more…

Disabling pfsync0 pseudo-interface on FreeBSD

Often on FreeBSD servers you can see the pfsync0 pseudo-interface up:

[root@bsd ~]# ifconfig
...(skipped)
pfsync0: flags=0<> mtu 2020 
 syncpeer: 224.0.0.240 maxupd: 128

Unless you are running a pf firewall with redundancy, you won't need this, moreover on CPanel/WHM enabled servers, Cpanel sometimes tries to …

more…