pharo-users@lists.pharo.org

Any question about pharo is welcome

View all threads

ZnServer on a cheap server: your experiences

V
vinref@gmail.com
Thu, Jul 22, 2021 5:56 AM

Anyone here run a web app using plain ZnServer (or subclasses) on a cheap VPS (i.e., $10/month DO droplet or equivalent). What are your experiences?, suggestions.

I am planning a web app with just plain ZnServer, SQLite3, ATS or equivalent.

Thanks, Vince

Anyone here run a web app using plain ZnServer (or subclasses) on a cheap VPS (i.e., $10/month DO droplet or equivalent). What are your experiences?, suggestions. I am planning a web app with just plain ZnServer, SQLite3, ATS or equivalent. Thanks, Vince
SV
Sven Van Caekenberghe
Thu, Jul 22, 2021 6:20 AM

Hi Vince,

That is certainly possible and works well. I would recommend an instance with 1GB RAM, that leaves you some headroom.

Deploying web applications is of course a broad subject, much of the required knowledge is not Pharo specific, but needed anyway.

The last chapter in the Pharo Enterprise book (https://books.pharo.org/enterprise-pharo/) is a good starting point (Deployment). But there are other and different approaches.

A plain HTTP demo instance running on a DO instance can be found here: http://zn.stfx.eu/welcome

For production use you should front with NGINX or something similar to add HTTPS.

May people on this mailing list deploy Pharo server applications, we have tens of them in day to day production doing real work.

Good luck on your journey, you know where to ask questions.

Regards,

Sven

On 22 Jul 2021, at 07:56, vinref@gmail.com wrote:

Anyone here run a web app using plain ZnServer (or subclasses) on a cheap VPS (i.e., $10/month DO droplet or equivalent). What are your experiences?, suggestions.

I am planning a web app with just plain ZnServer, SQLite3, ATS or equivalent.

Thanks, Vince

Hi Vince, That is certainly possible and works well. I would recommend an instance with 1GB RAM, that leaves you some headroom. Deploying web applications is of course a broad subject, much of the required knowledge is not Pharo specific, but needed anyway. The last chapter in the Pharo Enterprise book (https://books.pharo.org/enterprise-pharo/) is a good starting point (Deployment). But there are other and different approaches. A plain HTTP demo instance running on a DO instance can be found here: http://zn.stfx.eu/welcome For production use you should front with NGINX or something similar to add HTTPS. May people on this mailing list deploy Pharo server applications, we have tens of them in day to day production doing real work. Good luck on your journey, you know where to ask questions. Regards, Sven > On 22 Jul 2021, at 07:56, vinref@gmail.com wrote: > > Anyone here run a web app using plain ZnServer (or subclasses) on a cheap VPS (i.e., $10/month DO droplet or equivalent). What are your experiences?, suggestions. > > I am planning a web app with just plain ZnServer, SQLite3, ATS or equivalent. > > Thanks, Vince >
EM
Esteban Maringolo
Thu, Jul 22, 2021 12:32 PM

Yeap, not much more to add than what Sven said. What's important to
mention is that they are really stable.
I've been running Pharo servers in DO droplets of all sizes, without
issues (some running for months), I only had to upscale one droplet to
more memory, and it was because of a leak I introduced with PGSQL
connections, otherwise, they're pretty lightweight for today's
standards and a normal workload.

I have deployments with nginx and Pharo images as upstreams, and I
have one with Docker swarm and Traefik doing the load balancing among
different Pharo workers and acting as the HTTPS endpoint. I'm removing
this option though and moving back to nginx only.

What I never tried was to host a docker container running Pharo, in
some Docker hosting. It might be the best option as a quick start, but
after doing the math, it's always more expensive than a Droplet.

Best regards,

Esteban A. Maringolo

On Thu, Jul 22, 2021 at 3:21 AM Sven Van Caekenberghe sven@stfx.eu wrote:

Hi Vince,

That is certainly possible and works well. I would recommend an instance with 1GB RAM, that leaves you some headroom.

Deploying web applications is of course a broad subject, much of the required knowledge is not Pharo specific, but needed anyway.

The last chapter in the Pharo Enterprise book (https://books.pharo.org/enterprise-pharo/) is a good starting point (Deployment). But there are other and different approaches.

A plain HTTP demo instance running on a DO instance can be found here: http://zn.stfx.eu/welcome

For production use you should front with NGINX or something similar to add HTTPS.

May people on this mailing list deploy Pharo server applications, we have tens of them in day to day production doing real work.

Good luck on your journey, you know where to ask questions.

Regards,

Sven

On 22 Jul 2021, at 07:56, vinref@gmail.com wrote:

Anyone here run a web app using plain ZnServer (or subclasses) on a cheap VPS (i.e., $10/month DO droplet or equivalent). What are your experiences?, suggestions.

I am planning a web app with just plain ZnServer, SQLite3, ATS or equivalent.

Thanks, Vince

Yeap, not much more to add than what Sven said. What's important to mention is that they are really stable. I've been running Pharo servers in DO droplets of all sizes, without issues (some running for months), I only had to upscale one droplet to more memory, and it was because of a leak I introduced with PGSQL connections, otherwise, they're pretty lightweight for today's standards and a normal workload. I have deployments with nginx and Pharo images as upstreams, and I have one with Docker swarm and Traefik doing the load balancing among different Pharo workers and acting as the HTTPS endpoint. I'm removing this option though and moving back to nginx only. What I never tried was to host a docker container running Pharo, in some Docker hosting. It might be the best option as a quick start, but after doing the math, it's always more expensive than a Droplet. Best regards, Esteban A. Maringolo On Thu, Jul 22, 2021 at 3:21 AM Sven Van Caekenberghe <sven@stfx.eu> wrote: > > Hi Vince, > > That is certainly possible and works well. I would recommend an instance with 1GB RAM, that leaves you some headroom. > > Deploying web applications is of course a broad subject, much of the required knowledge is not Pharo specific, but needed anyway. > > The last chapter in the Pharo Enterprise book (https://books.pharo.org/enterprise-pharo/) is a good starting point (Deployment). But there are other and different approaches. > > A plain HTTP demo instance running on a DO instance can be found here: http://zn.stfx.eu/welcome > > For production use you should front with NGINX or something similar to add HTTPS. > > May people on this mailing list deploy Pharo server applications, we have tens of them in day to day production doing real work. > > Good luck on your journey, you know where to ask questions. > > Regards, > > Sven > > > On 22 Jul 2021, at 07:56, vinref@gmail.com wrote: > > > > Anyone here run a web app using plain ZnServer (or subclasses) on a cheap VPS (i.e., $10/month DO droplet or equivalent). What are your experiences?, suggestions. > > > > I am planning a web app with just plain ZnServer, SQLite3, ATS or equivalent. > > > > Thanks, Vince > >