Monthly Archives: July 2021

About Zinc servers on DO

The answers to the following question are from real pro pharo developers.

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

Answer 1

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

Answer 2

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

Answer 2

Yes, very stable. I’ve had a DigitalOcean droplet running for 6 years
that was holding various false starts. To my surprise, one (never
“shipped”) website was still running (Pharo-3.?, mongodb, Bootstrap
css). I’d been poking the site every once in a while, and found that
the Bootstrap UI steadily degraded, because I’d pointed the site’s
.css at some non-fixed version from some CDN server (so that .css must
have changed over the years). The uptime on the machine was over 1000
days, and there have been many emails over the years about network,
hardware, etc. changes. After years of unattended reboots, some relic
was still up.

Anyhow, that instance is now deleted, probably soon to be joined by a
more recent setup where I started with the DO 1-click docker droplet.
This setup was useful to learn about docker, and I might go back to it
in the future. Given Estaban’s comments in this thread, I decided to
do a bare nginx + Pharo image deployment (which is similar to the now
deleted 6 year instance described above, which had Apache2 instead of
nginx). I will have the mongo server on a separate machine, but have
not decided whether to use the DO offering of a managed mongo server.
It’s still a work in progress, and other’s experiences are of
interest.

Thanks for reading.
Yanni Chiu

[Ann] Chapter 3 of Pharo 9 by example

Here is the third chapter of the Pharo by Example For Pharo 9.0.

[Ann] Chapter 2 of Pharo by Example For P9

Here is the second chapter of the Pharo by Example For Pharo 9.0.

If you see mistakes please report them at https://github.com/SquareBracketAssociates/PharoByExample9

[Ann] Chapter 1 of Pharo by Example for Pharo 90

Hi

I restarted to work on a new version of Pharo by Example and this time for Pharo 90.

Here is the first chapter.

If you see mistakes please report them at https://github.com/SquareBracketAssociates/PharoByExample9

Stef

Thanks you association member!

Hi Pharo Association Member.

Yes you! First we would like thank you! Your 100 or 40 Euros are important.

And we would like to show you that your membership in the Pharo association is really helping Pharo.

You concretely help Pharo!!! So thanks.

We would like to really thank you for your support because as you will see that it is important. Your contributions are making an impact. Until now, the association did not make visible how is spent the money of your membership.

Your association contributions are securing vital Pharo infrastructures. It pays:

  • The domains such as pharo.org.
  • The hosting files.pharo.org: We plan to migrate to a better service.
  • The wild apricot software which manages the association. It enables us to do more with the association. (40$/month)
  • The newsletter via Mailchimp. This newsletter is a real success with more than 2500 recipients . You get see the archive at https://us11.campaign-archive.com/home/?u=6f667565c2569234585a7be77&id=048680a940 (30$/month). We are thinking to restart it.
  • The mailing-lists are managed with Mailname a professional service.

We wanted to do more but the COVID killed our energy. Now if you have ideas do not hesitate to let us know. (you can email to board@pharo.org.

We would like to remember the advantages of being an association member:

Stef on the behalf of the Pharo Association