I know 2 ways, tested in high loaded production.
if scheduler support ionice (on some systems makes LA)
Just ajust sleep time, according to your system LA
I know 2 ways, tested in high loaded production.
if scheduler support ionice (on some systems makes LA)
Just ajust sleep time, according to your system LA
First of all read http://upstart.ubuntu.com/getting-started.html upstart is beautiful 🙂 If your linux supports it.
But in some systems you should use old init style scripts 🙁
cp /etc/init.d/sceleton /etc/init.d/rec-runner
and edit it.
/etc/init.d/rec-runner
Read more »
Our company use our own CDN based on nginx caching. 7 high loaded (40 000 RPS per server) servers in 2 datacenters.
And periodically I observer some deviations in delivery time. from 0.15 to 7.5 or even 30 seconds.
We have nginx SLA module + Graphics and monitoring. But I need to test all servers for anomaly delivery time.
Then analyse ipN.x.x.x.txt any way you like.
cat | sort -n | tail -n 25
etc.
Have a nice day. I really like curl and hope this will help someone.
Task – return different pages depends on user browser language.
i.e. different html if backend return error. And for domain it.randomthemes.com always return english error page on backend error.
nginx.conf
Server context:
Task – redirect all requests from old-domain.com to new-domain.com
use nginx, luke! It`s simple.
Mysql tuning in action…
Yesterday me, and our development team made some tuning of one old project we have couple of tables with 1-10 million records.
It`s NOT BIGDATA, but application makes huge writes to this table.
Only current date records, but you understand partitioning affects index size.
Table can be partitioned by date field. So how to do it:
Everybody know
Also everybody know that ‘Seconds_Behind_Master’ shows difference in seconds between the slave SQL thread and the slave I/O thread.
Sometime it shows nonsense, and if you build monitoring It is not good practice to use ‘Seconds_Behind_Master’
Example from real life:
If replication becomes stalled due to connectivity problems, Seconds_Behind_Master shows 0 while replica is far away from master, changing timeout values not help. 🙁 i mean:
slave_net_timeout=300
So we implement following monitoring – every 3 second write current timestamp at master.
and check replica delay.
Or You can use percona heartbeat, It do almost the same.
Read more »
We have huge project with a great number of registered users. They receive notification via email, when actions occur. (new comment, gift, some other activity). Project targeting – Russia and former USSR In Russia some free email hosting providers like mail.ru delete user account after 2-3 years of inactivity.
So we have now 2-3000000 users with bad email address.
How to find them and remove from mailing list:
According to RFC 5321 (smtp rfc) in case of wrong email in rcpt to, server should return 550 no such user.
Read more »
Typical task:
We order server at India, for development needs. Need to setup web proxy with authentication. Use squid, Luke!
squid.conf
We had interesting issue with jira and qmail.
No mail comes to mail list group.
Not trivial email routing probles, message for mail list comes to ezmlm, but ezmlm rejects messages with tag
Precedence: bulk
Recent Comments