The Ali cloud uses the open cache service OCS

Source: Internet
Author: User
Tags memcached

Do you know which of the most expensive cloud servers we use? Run the memcached cache server (12G RAM). Do you know who is one of the contributors to the speed of Web Access? Run the memcached cache server.

With the cloud server so noble memory run memcached is too extravagant, we have been uneasy, but there is no other choice. Now it's time to wait. Aliyun Open Cache service OCS, which was deployed this evening.

Here's a share of our deployment process:

The memcached we used before. NET client enyimmemcached is an OCS recommended. NET client, so the application needs no modification, just modify the configuration. But previously because only in their own intranet use, do not require user name/password verification, so the configuration is slightly different.

1, in the OCS Management Console get OCS intranet address, Access account, password (no default password, we are obtained by resetting the password).

2, to the Web server, modify the enyim.com configuration in web.config:

<enyim.com>
    <memcached protocol= "Binary" >
        <servers>
            <add address= "memcached" Port= "11211"  />
        </servers>
        <socketpool minpoolsize= "500" connectiontimeout= "00:00:01" deadtimeout= "00:00:01" receivetimeout= "00:00:01"  />
        <authentication Type= "Enyim.Caching.Memcached.PlainTextAuthenticator, enyim.caching" zone= "" username= "OCS access Account" password= "OCS password"  />
    </memcached>
</enyim.com>

Note: The authentication part of the configuration is added for user name/password authentication, zone= "" should not be less, username N to uppercase.

3, continue on the Web server, Ping OCS intranet address to get OCS intranet IP, in the hosts add the following resolution:

OCS Intranet IP    memcached

4, access to OCS Management Console-> basic information, if you see the data in the instance monitoring, the OCS deployment was successful.

We completed the deployment around 22:30 and on the line, now the main station www.cnblogs.com has been used OCS.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/cloud-computing/

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.