This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-25
Channels
- # aatree (3)
- # admin-announcements (14)
- # aws (2)
- # beginners (23)
- # boot (58)
- # braid-chat (15)
- # cider (8)
- # clara (5)
- # cljs-dev (1)
- # cljsrn (38)
- # clojure (82)
- # clojure-china (2)
- # clojure-czech (16)
- # clojure-dev (11)
- # clojure-finland (1)
- # clojure-ireland (6)
- # clojure-japan (3)
- # clojure-portugal (1)
- # clojure-russia (152)
- # clojure-sg (7)
- # clojurebridge (3)
- # clojurescript (86)
- # code-reviews (3)
- # core-matrix (4)
- # cursive (25)
- # data-science (1)
- # datascript (2)
- # datavis (98)
- # datomic (21)
- # dirac (97)
- # emacs (1)
- # hoplon (1)
- # jobs (2)
- # ldnclj (21)
- # off-topic (3)
- # om (204)
- # pedestal (3)
- # proton (12)
- # reagent (125)
- # ring-swagger (9)
- # slackpocalypse (1)
- # spacemacs (1)
- # vim (1)
- # yada (19)
Hello guys, can I connect to a datomic (free) server from outside? I forwarded 4334,5,6 but I still get org.hornetq.api.core.HornetQNotConnectedException: HQ119007: Cannot connect to server(s). Tried with all available servers. type: #object[org.hornetq.api.core.HornetQExceptionType$3 0x66b1f02d "NOT_CONNECTED"]
What am I missing?
Hi @richiardiandrea, this is typically an error you see if the Transactor has bound to an IP/port unavailable to the peer.
If e.g. the Transactor is bound to localhost:4334, but the peer runs on a different host (or in a docker instance), then you need to set the alt-host property to the publicly available IP.
I have a query where I don't want to pull all the values of a multivalued attribute need to know whether the attribute has any values. I'm doing this:
(d/q '[:find (pull ?c [:campaign/docId]) ?m
:where
[?c :campaign/enabled true]
[(missing? $ ?c :campaign/zipcodes) ?m]]
db)
That works. But is there a way to do the same thing in the pull
syntax? It would be easier for the consumer code if the true
/`false` were in the pull
result.Hello. Please enlighten me about the work of datomic free 1. can I limit the amount of memory for memory storage, such as 8 GB 2. what will happen if these 8 GB busy data and I will be adding new entries, whether removing old? or do I have to remove them?
@a.espolov: Datomic Free offers two kinds of storage: mem
is in-memory only, on a single machine, limited to available space in the JVM Heap. If your mem database exceeds the available space on the heap, you will get an OutOfMemoryException. free
storage uses local disk on the same machine that is running the Transactor; it is limited by available disk space.
@ljosa: pull
cannot "rewrite" or transform anything about the data it pulls; it's just a selection.
@stuartsierra: ok, thanks
@a.espolov: Datomic Pro Starter Edition is a no-cost way to use Datomic that offers more options for storage back-end. http://www.datomic.com/pricing.html
and the cost of [EDIT:] DynamoDB can be as low as below 1 USD/month, if you set the read/write capacity to 1-2 pr. second.
Hey, got a probably slightly dumb question about this page, I'm trying to deploy a Datomic AMI: http://docs.datomic.com/aws.html
So I have my transactor dynamodb properties up and running, but it's set up with host=localhost
which I'm kind of assuming won't work for a transactor which I want to connect to over the network
...but it seems as though the CloudFormation config is going to provision my eventual host itself, so I'm not sure how to look into the future and get the AMI's eventual allocated hostname
Is there some Route53 config I need to do or something?
@timgilbert: you don’t have to manage this aspect of it. The cloud formation template generated by Datomic will handle getting host
and alt-host
values via AWS, and you only need DynamoDB region + table information to connect to the transactor. Peers connect to storage, the transactor writes its location (`host` and alt-host
) to storage, peers read it there.
Oh, right! slaps forehead
I had forgotten about the peers-talk-directly-to-storage aspect of datomic
Ok, so then my peer URI is just basically like datomic:ddb://${aws-dynamodb-region}/${aws-dynamodb-table}/${my-db-name}
, correct?
Ok, that makes sense, and there's no hostname in the connection URL. Thanks @bkamphaus!