Fork me on GitHub
#datomic
<
2016-11-15
>
magnars09:11:39

I would be very interested to see some information from the Datomic crew about using Spec with entities. It seems not to work right now, since entities aren't maps.

Alex Miller (Clojure team)15:11:37

There is a jira ticket about this FYI

jonpither15:11:44

Anyone using Terraform and Datomic?

jonpither15:11:17

Roughly following https://github.com/mrmcc3/tf_aws_datomic/blob/master/scripts/bootstrap-transactor.sh but my transactor EC2 nodes are coming up - just getting stuck installing package etc

karol.adamiec16:11:46

@jonpither i have of fork of that repo that also sets up a HTTP rest peer. Most problems are coming from malformed license key.

jonpither16:11:11

does the AMI is uses for the transaction cater for SSH-ing on to see the state of it?

jonpither16:11:51

but when the transaction EC2 doesn't come up, I can't find any possible way to debug it

karol.adamiec16:11:57

@jonpither is yout transactor cycling? ie starting up and shutting down repeatedly?

karol.adamiec16:11:15

the EC2 instance i mean

jonpither16:11:47

twice earlier it just never finished - the third time it seems to work, but without any logs or SSH access hard to determine if actually working

jonpither16:11:21

presumably with the AMI used in the terraform-example, if you specific a key-name you should be able to ssh on?

karol.adamiec16:11:55

take a peek into dynamo table

karol.adamiec16:11:10

if it connects it will put data there with its own ip address

jonpither16:11:13

ok doesnt seem to

jonpither16:11:07

Does it usually put logs in s3?

karol.adamiec16:11:10

never looked there. Had a lot of headaches with spinning up a transactor and i checked the table to see if it is up.

jonpither16:11:23

What is the default username for this AMI image?

jonpither17:11:16

Does the transactor not log by default?

Lambda/Sierra18:11:13

If the Transactor seems to never "start" but it doesn't immediately terminate, you can sometimes infer some things by getting the EC2 Console log.

Lambda/Sierra18:11:04

For example, I've seen images fail to start because the base image is configured to update core packages on boot, and it can time out hitting package repositories.

jonpither18:11:41

@stuartsierra thanks. My transactor is working, but there's some issue in my setup that means I can't easily ssh on to check out logs - I think a fresh brain tomorrow will help 🙂 Is this SSH'ing on the transactor something you ever do?

Lambda/Sierra18:11:23

No, you cannot SSH into the default Transactor AMI.

marshall18:11:27

@jonpither If you’re using our provide AMI, SSH is not enabled

jonpither18:11:39

yes I am using the AMI

marshall18:11:46

yeah, you can’t ssh to it

marshall18:11:58

it will rotate logs to S3 if you’ve configured the transactor properties file to do so

jonpither18:11:49

there's no logs in S3 other than a probe - it's possible I simple haven't started using it yet - logs shall appear

jonpither18:11:44

diff Q - do you have any resources / examples for setting up Console in AWS?

marshall18:11:04

logs are only rotated once a day or on shutdown

marshall18:11:06

of course if you just kill the ec2 instance you won’t get log rotation

jonpither18:11:44

so logs will only appear in s3 at the end of the day. What do you advise for seeing real time transactor logs?

marshall19:11:24

generally metrics are what i use to monitor live transactors

donaldball19:11:53

The map form of datomic queries seems easier to transform e.g. when looking to add shared complex conditions, but the list form is ubiquitous. Is there a datomic fn I’ve overlooked that transforms the list form into the map form?

donaldball19:11:01

Perhaps more to the point, when composing queries from complex shared criteria, do folk tend to pass the queries to fns that add the requisite criteria, or conj the shared criteria from whatever registry they live in into the query being constructed?