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/