amazon-dynamodb-dax

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

Using AWS DynamoDB DAX from local development machine

我的未来我决定 提交于 2020-06-11 05:34:28
问题 I'm trying out the DAX client for my application currently using DynamoDB and found out it's only supported within a VPC. The DAX endpoint is in the 172.31.x.y range. Does this mean it's impossible to test DAX features from my local development machine, or is it possible to configure DAX to be reachable from the Internet for testing purposes in some way? Or am I stuck with SSH-ing into an EC2 in the VPC? 回答1: Answer: Seems like the answer is No, we can't even test via our local dev machine. I

Using AWS DynamoDB DAX from local development machine

江枫思渺然 提交于 2020-06-11 05:34:20
问题 I'm trying out the DAX client for my application currently using DynamoDB and found out it's only supported within a VPC. The DAX endpoint is in the 172.31.x.y range. Does this mean it's impossible to test DAX features from my local development machine, or is it possible to configure DAX to be reachable from the Internet for testing purposes in some way? Or am I stuck with SSH-ing into an EC2 in the VPC? 回答1: Answer: Seems like the answer is No, we can't even test via our local dev machine. I

Getting failed to configure cluster endpoints error when using DAX with DynamoDB

依然范特西╮ 提交于 2020-01-04 04:57:32
问题 I created a cluster according to AWS' tutorials and it supposed to be working just fine but when I try to connect to it, I get the following error java.io.IOException: failed to configure cluster endpoints from hosts: [mydaxcluster.ximfba.clustercfg.dax.use1.cache.amazonaws.com:8111] at com.amazon.dax.client.cluster.Source$AutoconfSource.pull(Source.java:128) ~[DaxJavaClient-latest.jar:1.0.792.0] at com.amazon.dax.client.cluster.Source$AutoconfSource.update(Source.java:60) ~[DaxJavaClient

Getting permissions exception when calling amazondax service

白昼怎懂夜的黑 提交于 2019-12-23 19:08:00
问题 I'm using the amazondax service from an AWS Lambda method, and getting an exception that indicates missing permissions - but I don't know what permissions are necessary for this. Both the Lambda method and my DAX cluster are setup with the same VPC subnets and security groups. I'm getting the following exception: [ERROR] 2018-12-11T23:06:50.457Z 70c80374-fd99-11e8-bac1-318371e7b8ed Failed to retrieve endpoints Traceback (most recent call last): File "/var/task/amazondax/Cluster.py", line 211,

Can we have infinite TTL for DAX item cache

喜欢而已 提交于 2019-12-23 05:13:07
问题 I've currently set the item cache TTL for my dax cluster = 0. I cant find any good documentation for an infinite timeout. But does that correspond to an infinte timeout ? ParameterNameValues: "query-ttl-millis" : "60000" "record-ttl-millis" : "0" 回答1: Yes, setting "record-ttl-millis" to "0" means that DAX will never refresh a value based on TTL. Records can still be evicted (and thus refreshed on next request) if the cache fills up. I'll see about clearing up the documentation on TTL to make

Amazon DAX client throws “No endpoints available” exception

浪尽此生 提交于 2019-12-10 17:52:59
问题 I am trying to connect to DAX from a localhost using the following code: ClientConfig daxConfig = new ClientConfig() .withEndpoints("dax-cluster.yhdqu5.clustercfg.dax.use1.cache.amazonaws.com:8111"); AmazonDaxClient client = new ClusterDaxClient(daxConfig); The cluster is up and running, I've created it in a public subnet and opened port 8111 in the security group, but despite this I receive the following exception: Caused by: java.io.IOException: No endpoints available at com.amazon.dax

Closing DAX Client in Lambda Function

北城以北 提交于 2019-12-08 00:00:06
问题 I have a node.js functon that I want to deploy as a AWS Lambda function. I have noticed that when I use redis Elasticache, I must close the connection I opened with redis.createClient or else the Lambda function times out. I do this by simply calling the client's quit() method. If I do this prior to issuing the Lambda callback, the Lambda function ends as expected. If I do not, the Lambda function times out at whatever timeout interval I set. In a test setting, I have a Lambda function that

Closing DAX Client in Lambda Function

六眼飞鱼酱① 提交于 2019-12-06 09:55:16
I have a node.js functon that I want to deploy as a AWS Lambda function. I have noticed that when I use redis Elasticache, I must close the connection I opened with redis.createClient or else the Lambda function times out. I do this by simply calling the client's quit() method. If I do this prior to issuing the Lambda callback, the Lambda function ends as expected. If I do not, the Lambda function times out at whatever timeout interval I set. In a test setting, I have a Lambda function that operated on the cache and terminates in 30 milliseconds. Without the call to the redis client quit()