olemskoi.ru

Архив рубрики ‘Интересные RSS-выборки (новости)’

Действие при превышении Load Average (перепечатка)

Комментариев нет

Простой скрипт рестартящий апач при превышении LA определенного значения (в данном примере 5):

#!/bin/sh

a=`uptime | awk -F "load average: " '{ print $2 }' | cut -d, -f1 | sed "s/[,.]//g"`;
if [ "$a" -lt 500 ]; then
    echo ALLOK;
    echo $a;
else
    echo $a;
    /etc/init.d/httpd restart;
fi

Write a message to login users through terminal (перепечатка)

Комментариев нет

To write a message to users that have login, you can using the command write. But before that, you need to check who is login, and which terminal he is login to, use command who...

Original news source

vzdump of CentOS (перепечатка)

Комментариев нет

Current versions of vzdump has dependency for cstream and perl-LockFile-Simple, both available via rpmforge. Below is how I got it to install and run on CentOS-5.5 x86_64 architecture.

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm<br />rpm -ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm<br />yum --enablerepo=rpmforge install cstream perl-LockFile-Simple<br />rpm -ivh http://download.openvz.org/contrib/utils/vzdump/vzdump-1.2-4.noarch.rpm

It's necessary to export the location of the PVE libraries that vzdump requires. This can be added to «.bash_profile»:

export PERL5LIB=/usr/share/perl5/

read more

Tune2fs Command May Increase Linux Free Disk Space (перепечатка)

Комментариев нет

Not all of the Linux distributions allow users to tweak file system parameters during Linux installation, such as file system Reserved Block Count. Debian Linux installer allows user to change file system Reserved Block Count at Linux installation stage.

Other Linux distributions, particularly Redhat Linux, only allow user to tune file system parameters at post-installation stage, via Linux file system utility tune2fs...

Original news source

How to install Ubuntu Tweak 0.5.6 beta in ubuntu 10.04/9.10 (перепечатка)

Комментариев нет

Ubuntu Tweak is an application to config Ubuntu easier for everyone.It provides many useful desktop and system
options that the default desktop environment doesn’t provide.With its help, you will enjoy with the experience of
Ubuntu!

Original news source

Troubleshooting NFS (перепечатка)

Комментариев нет

This is intended as a step-by-step guide to what to do when things go wrong using NFS. Usually trouble first rears its head on the client end, so this diagnostic will begin there...

Original news source

A nerd's perspective on cloud hosting (перепечатка)

Комментариев нет

Let's go ahead and get this out of the way: The following post contains only my personal opinions. These are not the opinions of my employer and should not be considered as such.


The term «cloud hosting» has become more popular over the past few years and it seems like everyone is talking about it. I'm often asked by customers and coworkers about what cloud hosting really is. Where does traditional dedicated hosting end and cloud begin? Do they overlap? Who needs cloud and who doesn't?

You can't talk about cloud hosting without defining it first. When I think of «cloud», these are the things that come to mind:

  • quickly add/remove resources with little or no lead time
  • hosting platforms that allow for quick provisioning of highly available systems
  • self-service adjustment of tangible and intangible resources that normally require human intervention

That list may seem a bit vague at first, but try to let it sink in just a bit. Hosting applications in a «cloud» shouldn't mean that you must have a virtual instance running on Xen, KVM or VMWare, and it shouldn't mean that you must have an account with Rackspace Cloud, Amazon EC2, or Microsoft Azure. It means that your hosting operations are highly automated and you can rapidly allocate and deallocate resources for the requirements of your current projects.

Consider this: a customer of a traditional dedicated hosting provider decides to take their applications and host them on one VPS at a leading commercial provider. That provider allows the customer to spin up new VM's in a matter of minutes and re-image the VM's whenever they like. Is that cloud hosting? I'd say yes — even if it's one single virtual instance. That customer has moved from a hosting system with manual interventions and extended lead times to a system where they have instant control over their resources.

It's not possible to talk about what cloud is without talking about what it isn't.

  • Cloud is not infinitely scalable. If any provider ever claims that their solution is «infinitely scalable», you should be skeptical. Regardless of the provider, everyone eventually runs out of datacenter space, servers, network bandwidth, or power. (If you know of a provider that is infinitely scalable, please let me know as I'd love to see their facilities and review their supply chain.)
  • Cloud isn't right for everybody. Some applications have demands that cloud hosting might not be able to meet (yet). If an application depends on proprietary hardware that is difficult to virtualize or rapidly allocate, cloud hosting is probably not the answer for that particular application.
  • Cloud doesn't mean VPS. VPS doesn't mean cloud. As I said before, having a virtual private server environment is not a pre-requisite for cloud hosting. Also, not all VPS solutions fit my definition of cloud as they don't allow for rapid deployments and resource adjustments.

It's important to remember that cloud hosting is a marketing term. As for the technology of cloud, it's what you make of it. You should be looking to reduce costs, solidify availability and increase performance every day. If the ideals of cloud hosting help you do that, it might be the right option for you.

©2010 Racker Hacker. All Rights Reserved.

.

Watching nginx upstreams with collectd (перепечатка)

Комментариев нет

Already happy with nginx in front of Apache for a number of sites, I decided it was time to start testing nginx/fastcgi on my personal server (the serial crash test dummy of my web operations). The only problem: I have yet to find a sensible method of grabbing useful runtime information from the PHP fastcgi process itself, and if you can’t sensibly watch it, you can’t sensibly deploy it.

Original news source

read more

Run process with least cpu and IO priority (перепечатка)

Комментариев нет

Below is command to run process with the least CPU and IO priority.

nice -n 19 ionice -c 3 <command>

You could also include the same in the beginning of the script:

#!/bin/bash<br /># Make process nice<br />renice +19 -p $$ >/dev/null 2>&1<br />ionice -c3 -p $$ >/dev/null 2>&1

References:

read more

Administering MySQL (перепечатка)

Комментариев нет

In this lesson of the MySQL tutorial, you will learn...

1. To start up and shut down the MySQL Server
2. To view Information about the Server and Databases
3. To view and kill Threads
4. To clear System Caches
5. Various mysqladmin Options

Original news source