Multiple instance in a same system

Hi All,

I want to know if there is a way to start 2 metabase with jar file through different CMD .
by changing the local host port ?

Thanks in Advance

Hi @zarrar
Just to understand fully, you want to run multiple separate instances, so each instance has nothing to do with the other instances?
I’m asking, since Metabase can run multiple horizontal instances on the same metadata - used for scaling, if you have a lot of users.

If you want to run separate instances, then you would need to provide all the environment variables for each instance - like different ports and different metadata - or provide the variables via -D parameter.

java -DMB_JETTY_PORT=3001 -DMB_DB_CONNECTION_URI="postgres://localhost:5432/metabase?user=<username>&password=<password>" -jar metabase.jar

For more info, have a look at the documentation:
https://metabase.com/docs/latest/operations-guide/configuring-application-database.html
https://metabase.com/docs/latest/operations-guide/customizing-jetty-webserver.html