Reputation
502
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
2 12 29
Impact
~96k people reached

Mar
15
comment Is there any simple way to see which mongodb indexes are being used?
@Stennie - v3.0.5
Mar
7
comment Haproxy failing to start after VM move (Debian 8 [systemd])
The problem turned out to be that I had used CPU=native in my previous compilation. Apparently this is not recommended for virtualised environments, as it is likely to break.
Mar
7
comment Haproxy failing to start after VM move (Debian 8 [systemd])
Hi umar, thanks for your help . To clarify these were simply VM resizes, so although the VMs were moved to a different host, the instances remain exactly the same (users etc). (Also not running ubuntu, but debian). I'm going to try recompiling.
Dec
8
comment What exactly do the colors in htop status bars mean?
This answer doesn't include Orange for CPU - what does orange mean? (I'm not in detailed view, and using standard color scheme)
Dec
8
comment What exactly do the colors in htop status bars mean?
@tgies - the help page contains something different to this.
Nov
25
comment Haproxy - selecting backend dynamically from subdomain
Ahha, was able to get the first subdomain (enough for me) using the converter field(1,'.'). Thank you for your detailed answer which put me on the right path. I'd like to accept it, but for the sake of others could you put some note about the regsub limitations? (not sure what's best)
Nov
25
comment Haproxy - selecting backend dynamically from subdomain
I think it might be this limitation (closing parenthesis) It is important to note that due to the current limitations of the configuration parser, some characters such as closing parenthesis or comma are not possible to use in the arguments. Doesn't seem to be an obvious way around that :(
Nov
25
comment Haproxy - selecting backend dynamically from subdomain
I already tried that (since it was complaining about string in error), but the error remains the same. I'll read more about this regsub converter. Thank you.
Nov
25
comment Haproxy - selecting backend dynamically from subdomain
Thanks, this looks great. However I'm getting an error on the use_backend directive: sample fetch <req.hdr(host),lower,regsub(^(.*)(?:\..*){2}$,\1)> failed with : invalid arg 2 in conv method 'regsub' : missing arguments (got 1/2), type 'string' expected - any ideas?
Nov
23
comment Haproxy - selecting backend dynamically from subdomain
Thanks. I want to try and keep it dynamic, to reduce the number of config changes necessary. I'll certainly consider this option though, if it turns out dynamic is not possible.
Oct
22
comment Why am I getting errors in my HAProxy content switching config?
@Willy Tarreu - Is that advice still valid for 1.6? (ie. do we need to do httpclose when content switching?)
Oct
21
comment Nginx - removing Last_Modified header also removes CORS headers?
@AlexeyTen - But if you add that as an answer I will accept it.
Jun
26
comment How to execute a command for each file in a deep directory structure, recursively?
Do you know if there is a way to get it to spawn n parallel processes? (e.g. with xargs you can do this with the -P switch)
Jun
26
comment How to execute a command for each file in a deep directory structure, recursively?
@muru - thanks good to know.
Jun
25
comment How to execute a command for each file in a deep directory structure, recursively?
BTW - why would -exec be a last resort? (not familiar with it, so just curious)
Jun
25
comment How to execute a command for each file in a deep directory structure, recursively?
Thanks! Will give it a try and report back.
Jun
25
comment How to execute a command for each file in a deep directory structure, recursively?
Thanks. Will that execute the optipng as sudo though? I've tried sudo find with xargs, and it didn't (I had to put the sudo next to xargs) [not my downvote btw]
Mar
16
comment Interrupted apt-get upgrade - Now won't run again
Oops sorry, typo. I did an update, but it was the upgrade that got interupted, and which I'm dubious about now. (will correct in question)
Jan
23
comment What is causing `skb rides the rocket` errors?
OK thanks. There's also another bug tracker page here for the same issue. Interestingly one user reports that disabling sg did not resolve the issue for him. bugs.launchpad.net/ubuntu/+source/linux/+bug/1317811
Jan
5
comment What is causing `skb rides the rocket` errors?
Thanks Jason. According to man, sg off disables scatter-gather - Wouldn't gso or tso be the correct options for disabling packet segmentation? How has this setting worked out for you so far? Any re-occurrences of this issue?