HighLoad server optimization – TO DO

Terms: 1 dedicated server /VPS/VDS + PHP + MYSQL
Target: Fasten server’s speed in 10-50 times minimum :)

Here is the list below, what should be paid attention at while server optimization.
There is no sense to start everything at once, it depends on concrete situation and its bottleneck.

  • Diagnosis, monitoring and profiling
    • munin
    • disks: df -h, iotop, mpstat, iostat, sar, lsof, smartctl
    • processes/data store: ps aux, top, htop, vmstat, pstree, strace, watch, free -m, lsmod
    • network: tcpdump, netstat, iptraf

     

  • OS optimization and general tips.
    • if logs aren’t necessary, it’s better turn it off.
    • FS: XFS for fast reding and big files, ext3/4 – universal
    • FS formation : relatime(or noatime), async
    • checking stability and operability dns resolve, jump to 8.8.8.8 and 8.8.4.4

     

  • Web-server frontend Nginx
    • check worker_processes, worker_connections, %events_module% (kqueue – freebsd, epoll – linux), worker_priority
    • unix sockets instead of IP sockets
    • 304 http headers at all statistics, for a month: expires 30d
    • gzip on
    • gzip_static on (ngx_http_gzip_static_module); «for i in `find ./* -type f -name ‘*.js’`; do echo $i; gzip -c -9 $i > $i.gz; done;»
    • turn off statistics logs: access_log off
    • try_files instead of «if (… !-f)»
    • fastcgi_cache
    • aio on – suport of acynchronous IO in nginx, in details
    • sendfile on – if without aio
    • open_file_cache
    • timer_resolution 100ms – reduces the frequency of the call timer function

     

  • Web-server backend PHP-FPM (forget about apach (httpd) forever)
    • php-accelarators (opcode randomizing): apc or xcache
    • communication with front-end through the unix-socket

     

  • MySQL database server at config level and log analysis:
    • analysis of the variables of the serverstatistics (tuning-primer.sh, mysqltuner, sometimes phpMyAdmin)
    • profiling slow queries (one can with mysqlsla)
    • caching of SQL-queries on the database level
    • raising the limits on file handlers into the OS, it is necessary to optimize the temporary tables in virtual memory
    • raising the limits on connection to the database server
    • expansion / Fit buffer memory for running software / data

    application-level:

    • addition of conventional, multi-columned index, and FORCE INDEX in problem table
    • waiver / review request with wildcard-characters and the reduction of full scans
    • the use of DELAYED queries, multi (batch) insert / updates, statements
    • possible instead to use php-mysql php-mysqli in a compartment with mysqlnd

    basic tips for working with mysql

     

  • Applications’ optimization
    • use  APC var-caching, or (worse) memcached / redis / nosql …
    • analysis and refinement of queries to the database
    • replacement of full-time service outside the application. For example, replacing the standard search function on SphinxSearch
    • reduce http requests to the web server, http union loanedresources, sometimes CSS sprites
RSS

Google Announces Dart: «a new language for structured web programming”

Officially Google will announce Dart at AARHUS conference, which will be held on the 11th-12th of October, 2011. Heated dispute is at English- speaking resource Hacker News. It’s already known that Google has registred the new domain DartLanguage.com (whois).

RSS

Submitter in different searching engines.

Regional variations of Google and popular SEs of different countries are presented mainly. – click here

RSS

Cheating Google +1, Facebook “like” etc.

Register   here  (they recently put a captcha, so I’ll just show on their example the principle of cheating, because there are lots of heat exchangers on this engine, you can find any working.

So
1. you have registered
2. download free  auto-clicker from  here
3. install auto- clicker.
4. Set auto- cliker:
- In box  start/stop autoclicking set the combination of hotkeys  (e.g. Ctrl-E)
- In box Delay between clicks set the delay between clicks. It depends on the speed of your Internet connection speed of the browser.  Let’s say 1 second.
5. Log in  affiliate and go tothe section earn coins
6. Direct the cursor at Google +1 button and start auto- clicker with the combination Ctrl-E chosen earlier.
7. Have a coffee break.

Earned +1 clicks can be spent at any of your sites.

And captcha- it appears after 50 clicks. Before, you could click about several k +1 for your resourses per day.
Well here the principle is clear, if anything, you can easily find other exchanger without captcha.
The likes are cheated similarly on Facebook. Create account and like anything respectively.

PS: Here is another exchanger  clickcoin
If you find any other services, write in comments…

RSS

Google Directory RIP

Google starts closing different services, on a recent days Google directory has been closed:

From a practical standpoint, this means both depreciation of DMOZ, which is worth submitting your sites just for the sake of the appearance of sites from Google Back. What’s on the line, PR? :)

RSS

PuTTY 0.61 beta release is done after 5 years of development.

The new version of PuTTY 0.61:

Kerberos / GSSAPI authentication in SSH-2
Support for the Windows local X11 authorization
Support for Windows fonts without  fixed width (monospaced not)
Support on Unix GTK2
Connecting with the logical name of the machine, regardless of itsphysical address
Optimization flow control, optimization of cryptographic
Support zlib@openssh.com SSH-2 compression method
Support for the Windows Aero
Support for OpenSSH AES-encrypted private keys in PuTTYgen.
Fixed bugs:

OpenSSH private keys with prime numbers maintained in any order
Fixed Protoss port
Fixed Crashes and freezes the program when you exit the SSH session with an error
Fixed hang on the Windows serial port
Working with the Windows clipboard is now asynchronous, which corrected the deadlock, if the owner of the clipboard is located on a remote machine (via sent port or rdesktop)

Download here

RSS

The actions of Internet users in 60 seconds in the world

clickable image

RSS

Symbolic domains.

Look at the searching results see visually beautiful-looking domain,

Domain URL itself certainly does not look particularly attractive - xn – jfi.com. Who wants to register a similar domain - copy favorite character(see below) and paste it here. Click Encode and in the right window,obtain an interpretation of the character - then select the zone domain - com, net, org, etc.

Continue reading

RSS

New Google service: Me on the Web

The search giant offered users a new and rather unusual feature, whichshould help users monitor their safety and privacy on the Internet,allowing, however, Google’sown privacy.

So, the new service  Me on the Web, which is part of the Google Dashboard, should help you understand what other people see in search results when searching for information about it and respond if in the search results there were such information which the user finds  unnecessary for other people. Having intensified the dialogue Set up search alerts for your data,  Google-account holder can enter some information, whose appearance on the Internet and, accordingly in the search resultswill be monitored by search engine. You can also set the interval for monitoring - it is curious that you can choose and the possibility of «as-it-happens» beyond the traditional ”once daily” and “once a week.” If the user’s information will appear in search results, he will receive a letter with the appropriate notice and having returned to Me on the Web, will be able to remove it.

RSS

What SEO Services Do You Need For Your Website?

Typically, any legitimate SEO services begin at consultations and research on what a website deals in. This is followed by a market survey on phrases and keywords that reflect what the website is all about. Keywords are the potential customers’ way of asking search engines to avail websites that offer products they are interested in. These phrases draw traffic to websites just like yours thus surveys on what keywords your competitors use is also necessary. Through this consultation service an effective plan can be drawn up to establish what your website needs to become search engine friendly.

Link marketing is a crucial SEO technique as links are the channels through which traffic is directed to your website. As such, increasing the popularity of your links among search engines both local and international leads to the better visibility of your website to prospective clients. This is coupled with pay per click (PPC) SEO services offered by the major search engines. PPC services are a marketing model involving several dynamics and this calls for PPC management to ensure that there is cost-effectiveness and that your business will reap maximum returns on investment.

We must ensure that clients fully understand the products our businesses deal in and in this arises another line of SEO services, that of content writing. This is whereby communication is put across via articles, press releases and blogs. Professional writers with dynamic and creative writing skills generate these contents which are further optimized with keywords. The contents often contain links that indicate your website as the source of information. These contents are then delivered to article distribution websites. Other contents are occasionally generated for use in your site’s web pages. This is in line with the requirements of search engines which dictate that websites be frequently loaded with fresh content that is relevant and optimized for that particular website. Continue reading

RSS