简体   繁体   English

AWS DAX Node.JS问题

[英]AWS DAX Node.JS Issue

Followed the Demo at AWS Demo docs . 关注了AWS Demo docs上的演示。

I went through and followed everything step by step. 我经历并一步步遵循所有内容。 I was able to run their Node.JS files without any errors. 我能够运行他们的Node.JS文件而没有任何错误。 However the results I see show 0 improvement between DAX and NON-DAX. 但是,我看到的结果显示DAX和NON-DAX之间有0的改进。 Furthermore, after some digging looking at my DAX metrics, the DAX metric charts show 0 Item Cache hits and 0 Item Cache miss even after I execute the 03-GetItem.js Node.JS application for many times. 此外,在仔细查看我的DAX指标后,即使我多次执行03-GetItem.js Node.JS应用程序,DAX指标图表仍显示0项缓存命中和0项缓存未命中。 What the heck is going on? 到底他妈发生了什么? It doesn't seem to be hitting my DAX at all, yet throws no errors. 它似乎根本没有达到我的DAX,但是没有引发任何错误。

I ran aws dax describe-clusters --query "Clusters[*].ClusterDiscoveryEndpoint" and it successfully returned me the correct cluster address and port # that I am using in the node.js demo apps. 我运行aws dax describe-clusters --query "Clusters[*].ClusterDiscoveryEndpoint" ,它成功返回了我在node.js演示应用程序中使用的正确群集地址和端口号。

I also verified that the DAX has the IAM priveleges to access all the dynamo tables read and write. 我还验证了DAX具有IAM特权以访问所有读取和写入的发电机表。 I also verified DAX and the EC2 are in the same VPC I also verified that DAX/DDB and EC2 are in the same region. 我还验证了DAX和EC2在同一VPC中,我还验证了DAX / DDB和EC2在同一区域中。

Not sure what I am doing wrong. 不知道我在做什么错。 Any help is appreciated. 任何帮助表示赞赏。

Figured out the issues. 找出问题。 Essentially the DEMO node.js DAX provided by AWS was using the wrong client. 本质上,AWS提供的DEMO node.js DAX使用了错误的客户端。 Needed to make a code change for the demo to use daxClient. 需要更改代码才能使演示使用daxClient。

https://github.com/awsdocs/amazon-dynamodb-developer-guide/issues/3 https://github.com/awsdocs/amazon-dynamodb-developer-guide/issues/3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM