Fork me on GitHub
#datomic
<
2016-11-04
>
pesterhazy11:11:33

If I see a huge spike in DynamoDB WriteCapacity units used (20,000 instead of the usual 200), could that be the transactor re-indexing/re-partitioning/doing some other kind of maintenance work?

pesterhazy11:11:54

@teng, I think it depends on your requirements

pesterhazy11:11:16

if you return modest number of results (<10,000 ?) I'd do this:

pesterhazy11:11:29

- d/q [:find ?e] (only query the entity id) - sort - subvec using the offset/limit provided - then do further transformations (another query, or d/pull or map d/entity(

pesterhazy11:11:36

if you want to use d/q, to my knowledge that's the best you can do as it always returns results unsorted

pesterhazy11:11:57

(looking at my list, you probably also need to include some sort of sort key in the query)

tengstrand11:11:58

Ok thanks @pesterhazy - looks very similar to what Francis Avila wrote.

marshall13:11:17

@pesterhazy Spikes in DDB write usage are definitely present during indexing jobs. You can look at memory index metrics and/or the logs to get an idea if there is an indexing job running

pesterhazy13:11:50

@marshall if usage exceeds provisioned capacity, does datomic work gracefully in that case?

marshall13:11:20

you will get backoff and exponential retry for a period of time. too much throttling will result in transactor termination

pesterhazy13:11:07

we haven't seen transactor failures due to indexing spikes yet, so the retry mechanism seems to be working

jdkealy14:11:38

Hi, I'm trying to back up a datomic db and am running into an obscure error that ends with java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter... not sure where to go from here. Anyone have any suggestions? https://gist.github.com/jdkealy/948068e40a47861c5d84b097bcbf39d5

marshall14:11:38

@jdkealy can you post the backup command you’re running (elide any sensitive info like s3 paths or db names if necessary)

jdkealy14:11:16

bin/datomic -Xmx4g -Xms4g backup-db datomic:<ddb://us-east-1/my-datomic-new/test-table> <s3://datomic-backups/backup1>

marshall14:11:49

are you running this from a clean unzip of the Datomic distribution?

jdkealy14:11:08

i went through the steps to set up my transactor

jdkealy14:11:20

this is on a ubuntu server that's currently running the transactor

marshall15:11:27

My suspicion is a classpath issue. Can you try downloading and unzipping a fresh distribution somewhere else on the box and running from there?

tengstrand15:11:48

Is it possible to get the last transaction id for an entity when using the pull syntax?

jdkealy15:11:47

ok will do thanks marshall

jdkealy15:11:16

@marshall just tried on a fresh unzip, same thing... how is the read / write being authenticated in AWS

marshall17:11:02

it should be using IAM

marshall17:11:12

if you have roles configured for that instance

marshall17:11:21

if not you’d need to have creds exported into the env

jdkealy19:11:48

got it thanks

jdkealy19:11:34

It looks like the roles were configured using the configure script