Canton minimum and recommended requirements for PostgreSQL?

Hello team,

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

Thanks and regards,

Jean-Paul

1 Like

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

3 Likes

Thanks Ratko, it helped a lot ! :pray:

May I know if there is any recommended settings ?

Cheers,
Jean-Paul

1 Like

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.

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

1 Like

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.

3 Likes

Well noted David!

Thank you so much @Ratko_Veprek and @davidpadbury !

1 Like