Keynote speech in PEA Shanghai: Exploring the architecture and Application of Large and high-load websites

Source: Internet
Author: User

Topic: Architecture and Application of Large and high-load websites
Time: 30-45 minutes

Question: 163, Sina, Sohu and other websites. Many of their applications are PHP wrote, why are they capable of running thousands or even tens of thousands of people at the same time?What about offline applications?

  • Select Web servers with better performance

    • Performance limit of a single Apache web server
    • Choose web server TUX, lighttpd, thttpd… with better performance...
    • Separate static and dynamic files for hybrid use
  • Application optimization, Cache Usage and sharing
    • Common cache Technologies

      • Generate static files
      • Object Persistence serialize & unserialize

    • Need for Speed, cache in the fastest place
      • /Dev/shm in Linux
      • Tmpfs/ramdisk
      • Php built-in shared memory function/IPC
      • Memcached
      • MySQL HEAP table
    • Multiple hosts share cache
      • Comparison of advantages and disadvantages of NFS, memcached, and MySQL
  • MySQL database Optimization
    • Configure my. cnf and set a larger cache size.
    • Use phpMyAdmin to identify the configuration bottleneck and drain each bit of oil from the machine
    • Cluster (hot synchronization, mysql cluster)
  • Cluster to improve website availability
    • The simplest cluster is to set multiple A records, DNS round robin, and availability issues.
    • Mature cluster solutions that ensure high availability and scalability
      • Hardware implementation, such as vro and F5 network
      • Implemented through software or operating system
        • Based on the kernel, modify the TCP/IP data packet load balancing, ensure the scalability of LVS, and ensure the availability of the daemon ldirectord.
        • URL-based HAproxy Based on layer 7
    • Data sharing
      • NFS, Samba, NAS, SAN
    • Case
  • Solving North-South communication, telecom and Netcom speed problems
    • Dual-line server
    • CDN
      • Convert the IP address to the smart DNS, dnspod, or...
      • Squid reverse proxy (advantages and disadvantages)
    • Case

     

    Note:

    In September March 1, pea Shanghai Director h058 invited me to ask me what I want to say on pea. Although I think I am still talkative, however, I feel that I still have no experience in giving speeches on such a formal occasion, and I won't even do PPT presentations. At first, h058 told me to talk about the deployment of Svn in Linux, but I think this question is too simple and there is nothing to say. So I want to talk about something else. During this time, I was very interested in server deployment and application optimization. I also wanted to summarize it carefully, so I finalized this question.

    The outline is very fast. The topic I want to talk about on the 10th is fixed. Although I am familiar with MySQL, Apache, LVS and haproxy, two applications in the cluster, were also tested by themselves. However, some friends raised some difficult questions during the speech and did not understand them, so I did my homework seriously for every detail, and when I woke up every day, I silently passed in my mind like a movie.

     

    On October 16, March 24, shopex 407 training classroom, Huigu Entrepreneurship Center, Jiaotong University ..... Pea Shanghai started its seventh party with about 30 participants and more than 10 PHP trainees.

    At the beginning, the "PHPCMS System Design" was delivered by students without an opening speech. It may be due to insufficient understanding of the participants, I felt that the focus was not prominent in the system's macro explanation and some program processing details. I was full of ink and 18 pages of Word documents. I 've heard about my speech in the last hour and looked around, A small mm who came to train php has been secretly sleeping .....

    At, I felt that I was a little bit deep. I took the initiative to suspend my speech and took a 10-minute break to play.

    The speech unexpectedly went smoothly. In 35 minutes, from opening a question to staying at homework, the speech went smoothly and in one breath, without even a mouthful of water. When I joined the speech, I felt very excited, full of strength, the only unpleasant thing is a bit sore throat, haha :)

    When I announced that my speech "study every day" was over, my classmates gave a warm round of applause. At that time, I threw a deep sigh of relief, and the stone that pressed my heart for many days finally fell down, the speech looks very successful.

    During the speech, I found that the sleeping MM was gathering to listen to me. What impressed me was that many other students were taking notes, no one dozed off. After that, many people asked me to take the ppt. I asked Ma Ge what I said. Ma said, "The Regulations are clear, the train of thought is clear, and the speed of speech is stable. It's really good !", H058 also praised me for mobilizing the atmosphere. Well, I'm sure this speech is still doing well. If you rate yourself, you will score 88!

    In retrospect, I think there are still some shortcomings. I think the speed of speech is still relatively fast, and I don't feel overwhelmed. And the sound is too loud to make your throat uncomfortable. The mood is not too stable and a little excited. I still don't know whether everyone is familiar with my topic or whether I am very thorough. Basically, no one has asked questions. I think a good lecturer should be able to mobilize everyone's enthusiasm and let everyone participate in the discussion. It seems that we still need to continue to exercise.

    Through this speech, I found that I am still talented and promising in some impromptu topics and speeches. I must take part in more exercises in the future. I also summarized the following points for preparing a speech:

    1) careful preparation (including selection and understanding of the audience)
    2) stable mentality and stable mood
    3) enthusiasm and full payment of Physical and Mental Investment
    4) accumulation of language and speaking skills
    5) Try to make the audience participate in your topic.

    Ppt used for presentation: peash-2007-3-25.ppt

    More photos: http://www.flickr.com/photos/onion83/sets/72157594434393904/

    Dug a potato:

     

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.