Skip to content
Discussions/App Development/Canton minimum and recommended requirements for PostgreSQL?Forum ↗

Canton minimum and recommended requirements for PostgreSQL?

App Development8 posts643 views9 likesLast activity Sep 2021
JA
jaypeedaOP
Apr 2021

Hello team,

May I know what is the minimum and recommended requirements for Canton on DAML driver for PostgreSQL?

Thanks and regards,

Jean-Paul

RA
Ratko_Veprek
Apr 2021

Hi Jean Paul

That depends on the workload you intend to run. As an example, Canton runs on a Rasberry PI: https://twitter.com/quid_agis_2713/status/1375385584718385154?s=20 and @bernhard ran it on his Android phone a year ago.

In that sense, we’re trying to keep the requirements for Canton to the level of a standard JVM application with a database to reduce deployment complexity, but also provide the option to run it in a sharded microservice setup for HA and performance (enterprise only).

On our “internal roadmap”, we planned to provide a tool that let’s you run a DAML script and get sizing / cost numbers for each transaction therein. But thats not yet on the public roadmap.

Does that help?

Cheers,
Ratko

JA
jaypeeda
Apr 2021

Thanks Ratko, it helped a lot ! :pray:

May I know if there is any recommended settings ?

Cheers,
Jean-Paul

DA
davidpadbury
Apr 2021

Hi @jaypeeda, I don’t think we don’t have any specific recommendations at this point. fwiw most of the deployments we do for typical usecases just use the default postgres docker images with no customizations.

JA
jaypeeda
Apr 2021

Hi David,

I see. Do you know if Canton can run on a 128MB RAM or need at least 1GB RAM to run properly without slow down?
Does it make a huge difference to run using a 2GB RAM or a 4GB RAM or more ?

Thanks and regards,
Jean-Paul

DA
davidpadbury
Apr 2021

Hi @jaypeeda, I’ve actually heard rumors of people running canton on raspberry pis and android phones, but tbh I’d recommend a machine with at least 4GB of memory. For our own deployments we normally just use the standard VM images that typically start at 8GB. Of course this can all be use case dependent.

JA
jaypeeda
Apr 2021

Well noted David!

Thank you so much @Ratko_Veprek and @davidpadbury !

QU
quidagis
Sep 2021

@davidpadbury I was searching for some other Canton information and saw your post.

Yes Canton Community version 0.22.0-0.27.0 will install and run on a Raspberry Pi, but as you stated available base memory is key. Canton requiring Java implies all those usual memory issues that if not managed correctly, provide sub-optimal performance.

With a 2GB RAM RPiv3, I was unable to run most of the examples, however I did not get to benchmark the performance of a ‘normal’ Daml app, something that I would write. Perhaps that is something for the future to test :thinking:

TL;DR: It works but only just :smiley:

← Back to Discussions