I'm planning to buy new server for memcache/couchbase.
Would you recommend using ECC memory for a memcache server, why/why not?
wlk's questions
How can I check using Linux / Bash how many lines were added to selected log file during for example last 10 seconds ?
It's one time use, not on to run in the background.
File doesn't contain any information about time.
I also don't need this arbitrary -> I can select a moment from when I would like to track the number of rows added, and do this for some time.
Thanks!
I'm looking for some documentation/tutorial on how to create good init.d scripts for different services in Debian.
This article is nice introduction: http://www.debian-administration.org/articles/28 but I'm looking for more details.
Thanks!
I'm using rsync to copy files between servers, I'm using -z
option what compresses data only for the network transfer stage.
But I would like to leave compressed files on remote machine and I have not found this option in rsync.
Is this possible ?
I'm trying to create simple backup script that copies some files to timestamped directory on the remote machine - this part is working quite OK, because I didn't run into issues like e.g network connectivity yet.
I would like to know what is recommended practice for checking if my files were copied correctly.
I was thinking about 2 ways to do this:
- Check file sizes/md5 before copying them and compare them with ones on remote machine
- Always copy one more file that will be copied last (like 1 byte file) and then check if it exists on remote machine.
I'm using Debian 6 as my server, I have configured OpenVPN server there, and clients are connecting successfully using tap mode. This server is available from the internet, but It's also connected to internal network.
Local LAN: 192.168.3.0/24
- eth0 on OpenVPN server
OpenVPN clients: 192.168.199.0/24
- tap0 on OpenVPN server
It would be great if someone could give mi steps I have to follow to allow clients who connect to OpenVPN server to see and be able to connect to each machine within LAN where OpenVPN server is located (192.168.3.0/24 network).
It would be perfect if you could tell me how to setup this routing automatically after client connects.
I need it to determine if hitting ctrl+d would disconnect me from server or just close current screen
.
Is it somehow possible to check if I'm right now in screen
session?
I would like to know about your strategies on what to do when one of the Hadoop server disk fails.
Let's say, I have multiple (>15) Hadoop servers and 1 namenode, and one from 6 disks on slaves stops working, disks are connected via SAS. I don't care about retrieving data from this disk, but for general strategies for keeping cluster running.
What do you do?