Fork me on GitHub
#datomic
<
2019-10-11
>
magnars07:10:47

Are there any guides or tips for migrating from datomic-free to pro (on-prem)?

cjsauer13:10:31

How would one create a library for datomic ions? What would be the contents of the library’s deps.edn file? Would it be best to consider the ion and client cloud libs as “provided”?

Alex Miller (Clojure team)13:10:26

you might want to check out the ion-starter project https://github.com/Datomic/ion-starter

cjsauer14:10:09

Thanks, Alex. I’ve studied that example extensively, and my impression was that it was more application focused. I’m thinking of adding an alias to my library’s deps.edn file called :provided that contains all of the relevant datomic libs. Then users of the lib would need to depend on those themselves.

Alex Miller (Clojure team)14:10:25

that seems like a reasonable approach

Alex Miller (Clojure team)14:10:59

or you could just depend on them directly - the users of your lib could specify different versions and those would be preferred

cjsauer14:10:02

Ah okay, that was where my confusion was. I’m never quite sure when, as a lib author, a dependency should be considered “provided” @alexmiller. Probably a question for #tools-deps, but it sounds like the resolution is “last one wins”?

cjsauer14:10:40

(shared to #tools-deps to stay on topic, FYI)

ninja15:10:01

Hi, I'm currently writing a custom monitoring solution in order to enable Prometheus scraping transactor metrics. The monitoring documentation (https://docs.datomic.com/on-prem/monitoring.html) doesn't seem to completely represent the current state of metrics handed to a callback function by the transactor. For specific metrics, information is hidden in the changelog section and never made its way to the monitoring documentation. Other metrics are said to be deprecated (since a long time ago) in favor of replacements, although these replacements were never handed over by the transactor. So 2 questions: - is there a plan to update the documentation on this topic in the near future? - what do the metrics PodUpdateMsec and PodGetMsec describe?

kelveden15:10:42

Is it possible to pull the transaction data for a datom without binding a ?tx in the :where clause? For an example close to the specific problem I'm trying to solve: https://docs.datomic.com/cloud/query/query-pull.html#org0595b1b - could the final pull be modified to include (say) db/txInstant with each item of :release/_artists?

hadils17:10:19

Research question: is there a way to hook up Datomic Cloud Analytics to an AWS instance of Metabase? I realize I would have to run an EC2 instance, etc. and I am willing to put in the work, but I need to know it's possible...

danieroux18:10:07

We did this just today: Easiest is to run the analytics ssh tunnel from the EC2 instance, and then let Metabase connect to local host. Also, it's so darn sweet to see the data in Metabase.

👍 4
magnars17:10:51

I'm trying to convince a client to start paying for Datomic - where can I find guides or tips for migrating from datomic-free to pro (on-prem)?

favila17:10:17

I’m not sure there’s any migration to do? backup the db, restore it to your new storage. If you’re still using dev storage, you may not even need backup+restore (I’m unsure)

favila17:10:05

are you aware of the distinction between “starter edition” and “free”?

favila17:10:52

starter edition is just a free-first-year license-key

magnars06:10:31

Yes, part of the selling point is that they don't have to pay the first year. I tried pointing datomic-starter at the same URL, but there's no free there, and dev does not see the contents from the free database. A backup+restore sounds entirely doable, but I'd be interested in cleaning up the database a bit at the same time. I think it's called decanting?

favila14:10:28

Does the connection work if you s/:free:/:dev:/?

favila14:10:50

They’re the same bytes in storage really, only some runtime license/feature checks are different

favila14:10:49

Oh you did try it. Huh I expected that to work

MegaMatt18:10:01

is squuid only in datomic peer or can i generate a squuid in the datomic cloud api?

shaun-mahood20:10:28

Where's the best to report issues with Datomic documentation? I've run into a couple dead links and outdated instructions recently (though I'll have to find them again to be able to report them).

Alex Miller (Clojure team)20:10:56

here is usually a good place

ibarrick20:10:33

I'm getting tons of these: clojure.lang.ExceptionInfo: :db.error/transactor-unavailable Transactor not available and I'm not sure how to diagnose. The transactor is up and running and it doens't look like it's that bogged down. Is there an easy way to diagnose this error or to get more information?

benoit23:10:29

Most of my "transactor unavailable" errors with on-prem were due to a lack of heap on the peers. Hope that helps.

dazld11:10:13

resource starvation on the peers would be my first check too. you could wrap d/transact with some monitoring to measure average completion time.

shaun-mahood21:10:50

@alexmiller Perfect, thanks! I think these were the only one I ran into, but I'll post here if I find any others. Broken Link - https://docs.datomic.com/cloud/howto.html#aws-access-keys (found in https://docs.datomic.com/cloud/ions/ions-reference.html#push and https://docs.datomic.com/cloud/ions/ions-reference.html#deploy) Outdated instructions - the AWS pages used when following https://docs.datomic.com/cloud/operation/upgrading.html#compute-only-upgrade and https://docs.datomic.com/cloud/operation/upgrading.html#compute-only-upgrade have changed - they've removed the "Actions" button and have a standalone "Update" button, and the options for specifying the S3 Template are named differently as well. Not sure if that's universal or if it depends on the account or region.

Alex Miller (Clojure team)21:10:41

thx, I'll ship 'em to datomic team