AWS DAX cluster has zero cache hits and cache miss

淺唱寂寞╮ 提交于 2020-06-17 09:15:15

问题


I'm using an AWS DAX cluster of 3 nodes of dax.r4.xlarge node type. When I'm running my spark application from EMR cluster, it is always fetching values from dynamodb table. Even if I run the same application on same set of key, it is querying dynamodb table. In the DAX cluster metrics I see 0 cache hits and misses.


回答1:


I found the mistake. Initially I was hitting DynamoDB directly and was using consistent reads by defining get item input parameter as: ConsistentRead: aws.Bool(true) When I switched to DAX client, I did not remove it. Hence it was always redirecting all the requests to Dynamodb table to keep the reads consistent. Removing this worked. I can see cache hits and misses in DAX metrics now.



来源:https://stackoverflow.com/questions/60415133/aws-dax-cluster-has-zero-cache-hits-and-cache-miss

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!