web-1234, web-1235, web-1236Each of these host names are hashed and converted to an integer, decreasing the likelihood that the infrastructure will appear in alphanumeric, sequential order. By doing this, the process increases the likelihood of webs being distributed evenly in the hash ring. The array of infrastructure is passed to the Memcached service, which maps each value to a hash ring. Memcache does this several times per infrastructure, using different hashing parameters, with the goal of creating an even distribution of infrastructure endpoints throughout the loop. After all hostname points have been mapped, objects are encoded using the following:
$full_key = urlencode($prefix . $bin . '-' . $key);This creates a key in the following format:
examplesite_-cache_page-https%3A%2F%2Fwww.example.comThe objects are hashed using the crc32 hashing algorithm and mapped in a similar fashion.
Infrastructure and objects are mapped to the hash ring with an absolute value, allowing the Memcached service to quickly determine where they exist. If any infrastructure in the loop or array are removed, the website will not lose all of its cached data and the PECL Memcached extension will evenly distribute the load amongst the remaining parts of the infrastructure. For information about Memcached architecture, visit How is Memcached architected differently in Cloud Platform?
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.