This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-02
Channels
- # announcements (4)
- # aws (18)
- # beginners (227)
- # boot (1)
- # calva (13)
- # cider (22)
- # clara (2)
- # cljs-dev (17)
- # clojure (85)
- # clojure-brasil (2)
- # clojure-dev (55)
- # clojure-europe (2)
- # clojure-italy (18)
- # clojure-japan (4)
- # clojure-losangeles (1)
- # clojure-nl (5)
- # clojure-uk (53)
- # clojurescript (46)
- # clojureverse-ops (8)
- # cursive (17)
- # data-science (3)
- # datascript (3)
- # datomic (25)
- # duct (4)
- # emacs (2)
- # figwheel-main (1)
- # fulcro (9)
- # hoplon (2)
- # hyperfiddle (1)
- # jobs-discuss (5)
- # kaocha (7)
- # leiningen (3)
- # nrepl (50)
- # off-topic (32)
- # portland-or (1)
- # re-frame (19)
- # reitit (2)
- # shadow-cljs (30)
- # spacemacs (2)
- # sql (8)
- # tools-deps (4)
- # vim (26)
- # xtdb (3)
- # yada (8)
I'm trying to setup datomic cloud, i might eventually roll this into a "production" sever, but its doubtful that will happen anytime soon (months if ever). https://docs.datomic.com/cloud/setting-up.html The docs make this comment: > If you are setting up a Datomic Cloud System for production or doing exploratory work for such a purpose then consider creating separate storage and compute stacks. Should i go that route? and follow the instructions here?https://docs.datomic.com/cloud/operation/new-system.html I would guess not, as it probably a bit more complex and i can upgrade to one later right?
@drewverlee cloudformation is the central point
You can create storage, solo, production and query from it.
To create a system, you just need to copy the URL from https://docs.datomic.com/cloud/releases.html and paste on "create from JSON URL"
the storage, usually my-system
store the data. It will never be deleted
the solo, usually my-system-XXXX
can be deleted and created (on create, it will ask for the storage name)
you can delete a solo and create a prodution, pointing to the same storage
I'm using datomic pro 0.9.5786 on-prem and got the following error in my logs (as WARN level) from the datomic.common logger:
o.a.a.a.a.c.ActiveMQNotConnectedException: AMQ119007: Cannot connect to server(s). Tried with all available servers.
at o.a.a.a.c.c.i.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:799)
at d.artemis_client$create_session_factory.invokeStatic(artemis_client.clj:114)
at d.artemis_client$create_session_factory.invoke(artemis_client.clj:104)
at d.connector$try_hornet_connect.invokeStatic(connector.clj:110)
at d.connector$try_hornet_connect.invoke(connector.clj:95)
at d.connector$create_hornet_factory.invokeStatic(connector.clj:142)
at d.connector$create_hornet_factory.invoke(connector.clj:132)
at d.connector$create_transactor_hornet_connector.invokeStatic(connector.clj:322)
at d.connector$create_transactor_hornet_connector.invoke(connector.clj:317)
at d.connector$create_transactor_hornet_connector.invokeStatic(connector.clj:320)
at d.connector$create_transactor_hornet_connector.invoke(connector.clj:317)
at d.p.Connection$fn__10138.invoke(peer.clj:237)
at d.peer.Connection.create_connection_state(peer.clj:225)
at d.peer$create_connection$reconnect_fn__10213.invoke(peer.clj:489)
at c.core$partial$fn__5841.invoke(core.clj:2623)
at d.common$retry_fn$fn__697.invoke(common.clj:514)
at d.common$retry_fn.invokeStatic(common.clj:514)
at d.common$retry_fn.doInvoke(common.clj:497)
at clojure.lang.RestFn.invoke(RestFn.java:713)
at d.peer$create_connection$fn__10215.invoke(peer.clj:493)
at d.r.Reconnector$fn__9445.invoke(reconnector2.clj:57)
at c.core$binding_conveyor_fn$fn__5756.invoke(core.clj:2030)
at clojure.lang.AFn.call(AFn.java:18)
at j.u.c.FutureTask.run(FutureTask.java:266)
at j.u.c.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at j.u.c.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Is there a way to change this message to ERROR level?
Is there a way for my app to detect that this has happened?
Edit: I got this as a one off error, usually everything works fine.I’m going to play around with datomic cloud but will only have a couple days a week to do so. Does it work to just stop the ec2 instances and turn them on when i’m learning it? Or do i have to tear down the whole stack each time?
@matthewdaniel If you go to EC2 Dashboard you can change the minimum number of machines in the autoscaling group to 0, then change the desired amount to 0 and it will shut them down. See the docs for more details https://docs.datomic.com/cloud/operation/planning.html#turning-down
thank you for this. I had datomic cloud running last month but I was only using it like 2-3h a day when developing on my own time outside of work 😍.
@U0CJ19XAM is there a way to connect to this via the rest? i’m trying to setup a javascript connection planning to use https://github.com/limadelic/datomicjs
@matthewdaniel If you go to EC2 Dashboard you can change the minimum number of machines in the autoscaling group to 0, then change the desired amount to 0 and it will shut them down. See the docs for more details https://docs.datomic.com/cloud/operation/planning.html#turning-down
yep, having the same error for the dev setup on prem than @ivar.refsdal when I try to create a database
dev setup === local dev setup
memory works fine
trying with datomic + dynamodb local too
same error
ActiveMQNotConnectedException AMQ119007: Cannot connect to server(s). Tried with all available servers. org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory (ServerLocatorImpl.java:799)
when trying to create a database
Did you read/try the alt-host setting? https://docs.datomic.com/on-prem/storage.html#connecting-to-transactor I got this error as a one-off. My app has been running fine in production for a while now
Thanks Ivar, will try that one - tried with dev protocol and ddb-local - both failing with the same message and not creating the database
will try with the peer connecting with the transactor (was connecting using REPL)
Hey, how can I do a conditional over an aggregate in datomic? I tried something along the lines of
[(max ?date) ?last-date] [(before ?last-date ?ref-date)]
but it looks like that's always a max over one item in the query, which is kind of expected
You can use subqueries. https://forum.datomic.com/t/subquery-examples/345