Score:0

How to scale Landscape with Juju

ky flag

I have an installation of Landscape 23.03 with the Juju Charm landscape-scalable. The installation process has gone fine and according to the guide.

As we have more than 500 servers in our organization we have chosen the "truly scalable" option as described on this page.

Here's the problem: How do I scale Landscape? I have only been able to find a few lines on high availability: juju deploy -n 10 <application>. Having tried this command with n=2 was unsuccesfull.

Is the charm not clever enough to setup connections to the postgres database, and edit the HAProxy configs?

Thank you

Score:0
in flag

Charms can be scaled up and down after deployment by using juju add-unit or juju remove-unit commands. For landscape server, this is a matter of running

juju add-unit landscape-server

This should allocate a new machine and scale landscape-server to it. As you mentioned, this will also wire the newly deployed landscape-server to haproxy and the database. Technically the same command could be done for scaling haproxy or postgresql (though in the case of postgres it doesn't quite scale but create a passive replication server IIRC)

juju deploy is used to deploy new applications, not scale existing ones. If you were creating a new model from scratch that would be one way to do it. As you already have a functional juju model (deployed with the landscape-scalable bundle) the deploy command will probably error saying the application already exists.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.