Fork me on GitHub
#datomic
<
2017-02-07
>
jwkoelewijn11:02:27

Hi there, I have a question regarding Starter Edition & Memcached, the documentation on http://docs.datomic.com/caching.html does not seem to be very clear: the first paragraph in the Memcached chapter states: "Memcached is an optional addition to a paid Datomic Pro system,......” while in the second paragraph "This setting will only take effect on transactors configured with a Datomic Pro or Datomic Starter license key,......"

jwkoelewijn11:02:55

the latter sentence leads me to believe we can use Memcached on starter licenses as well, is this correct?

robert-stuttaford11:02:15

only free can’t use it

tengstrand14:02:20

Does Datomic have support for counters, like an alternative id that is increased by one for a given new entity, or do I need to implement it myself like this: https://github.com/jcrossley3/datomic-counter/blob/master/src/counter/db.clj

marshall15:02:01

@jwkoelewijn Since version 0.9.5530 Starter has provided HA and memcached. Thanks for catching that - I’ll update the text;

karol.adamiec15:02:14

@teng afaik one should use dbfn for that.

karol.adamiec15:02:22

no built in stuff atm

jwkoelewijn15:02:56

@marshall cool, thought something like that, but just wanted to be sure, thanks!

tjg16:02:44

A coworker informally mentioned that Datomic’s crashy on his laptop. (Mac: blows up RAM. Debian VM: freezes & leaves a lot of orphaned processes.)

tjg16:02:44

A couple years ago when I used Datomic, I recall it would become slow, IIRC explained in google groups as a sleep issue.

tjg16:02:49

Is this expected?

tjg16:02:17

(And therefore I should set up dev DBs on a server somewhere?)

pesterhazy16:02:41

the sleep issue was resolved a while ago I think, according to release notes

pesterhazy16:02:58

Datomic's dev transactor has never crashed on me, on mac or linux

pesterhazy16:02:24

do you have a ton of data?

favila16:02:38

if you don't have much ram, using -Xmx startup args on both client and server processes is pretty important

favila16:02:18

It's possible client or server by itself is fine, but both together leads to OOM

favila16:02:38

(sorry, peer or transactor)

tjg20:02:47

@pesterhazy (Sorry for the slow response.) I’m pretty sure my coworker’s using very little data, not nearly enough to stress the 8GB RAM. Asking now for verification...

tjg20:02:38

If no one else has any weirdness running it locally for dev, I’ll try to replicate on my machine...

favila20:02:37

@tjg just make sure transactor + peer are started with -Xmx2G or something, to limit max ram they can use

tjg20:02:53

@favila Thanks, will do!