Network File System optimization through LAMP system optimization (1)

Source: Internet
Author: User

 

Figure-LAMP

LAMP network filesSystemOptimization

Network File System (NFS) is a way to share disks through the network. NFS helps ensure that each host has a copy of the same data and that the modifications are reflected on all nodes. However, by default, NFS configuration is not suitable for large-capacity disks.

Each client should use rsize = 32768, wsize = 32768, intr, noatime to mount a remote file system to ensure:

Use a large read/write block (number specifies the maximum block size, which is 32 kb in this example ).

The NFS operation can be interrupted when it is suspended.

Does not continuously update atime.

You can put these settings in/etc/fstab, as shown in listing 3. If an automatic installer is used, place these settings in the appropriate/etc/auto. * file.

On the server side, make sure there are enough NFS kernel threads to process all clients. By default, only one thread is started, but the Red Hat and Fedora systems start eight threads. This number should be increased for busy NFS servers, such as 32 or 64. You can use the nfsstat-rc command to evaluate the client and check whether there is blocking. This command displays the client Remote Procedure Call (RPC) statistics. Listing 5 shows the client statistics of a Web server.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.