When it comes to scaling Puppet, it is recommended to have a PuppetDB process running on all Puppet Servers (primary and compilers) which connect to a central PostgreSQL database.
There is no option yet to enable and configure PuppetDB on a PuppetServer.
It is only possible to configure Puppet to make use of an existing PuppetDB.