#1 2021-01-21 05:13:45

edwinsn
Member
Registered: 2010-07-02
Posts: 1,176

Grace is an idea for mORMot - upgrade server with zero downtime

https://github.com/facebookarchive/grace

It's for golang, and not sure how's achieved, but its github page says it can upgrade your web server without dropping any connections.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2021-01-21 07:36:21

pvn0
Member
From: Slovenia
Registered: 2018-02-12
Posts: 202

Re: Grace is an idea for mORMot - upgrade server with zero downtime

This is a feature of a load balancer, it's recommended to have something like haproxy sitting in-front of your mORMot server.

Offline

#3 2021-01-21 11:02:22

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,191
Website

Re: Grace is an idea for mORMot - upgrade server with zero downtime

Yes, if you put a load balancer in front of mORMot servers, then you can gracefully shutdown a mORMot server, and it should redirect to the running one.

Offline

#4 2021-01-21 13:39:15

edwinsn
Member
Registered: 2010-07-02
Posts: 1,176

Re: Grace is an idea for mORMot - upgrade server with zero downtime

Currently I put it behind an IIS wink


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#5 2021-01-22 07:28:19

pvn0
Member
From: Slovenia
Registered: 2018-02-12
Posts: 202

Re: Grace is an idea for mORMot - upgrade server with zero downtime

edwinsn wrote:

Currently I put it behind an IIS wink

I'm curious, I've never met someone using windows for a server, do you actually pay for windows server edition + licensing for cpu cores or do you just run your server application on Consumer Windows editions?

Last edited by pvn0 (2021-01-22 07:38:11)

Offline

#6 2021-01-22 09:41:41

edwinsn
Member
Registered: 2010-07-02
Posts: 1,176

Re: Grace is an idea for mORMot - upgrade server with zero downtime

@pvn0,

Yes, I do. Just checked, I pay $26/month for a Vultr Windows VPS, maybe $10 is the Windows license fee.
I also use linux VPS (AWS/digitalocean/Linode)

Actually, vultr is the only big-names that provide decent Windows VPS at a reasonable price - the others is either expensive or slow.

If you or everybody is interested, use my reference link, I think both you and me will get some deposit  wink

Last edited by edwinsn (2021-01-22 09:42:55)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#7 2021-01-24 07:20:16

pvn0
Member
From: Slovenia
Registered: 2018-02-12
Posts: 202

Re: Grace is an idea for mORMot - upgrade server with zero downtime

@edwinsn, thanks for the info, I remember as a teenager I used Vultr to host a server for a game I played, overall was a good experience.

Offline

#8 2021-01-24 13:57:03

edwinsn
Member
Registered: 2010-07-02
Posts: 1,176

Re: Grace is an idea for mORMot - upgrade server with zero downtime

@pvn0, how old are you then? big_smile
I have the impression that vultr is quite new - it appeared after Digital Ocean IIRC...


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#9 2021-01-25 07:09:25

pvn0
Member
From: Slovenia
Registered: 2018-02-12
Posts: 202

Re: Grace is an idea for mORMot - upgrade server with zero downtime

hehe my bad then, must have been a hosting company with a similar name then big_smile

Offline

#10 2021-01-27 23:25:54

Junior/RO
Member
Registered: 2011-05-13
Posts: 201

Re: Grace is an idea for mORMot - upgrade server with zero downtime

edwinsn wrote:

Yes, I do. Just checked, I pay $26/month for a Vultr Windows VPS, maybe $10 is the Windows license fee.
I also use linux VPS (AWS/digitalocean/Linode)

Actually, vultr is the only big-names that provide decent Windows VPS at a reasonable price - the others is either expensive or slow.

Do you know Contabo? I'm using for a year, now. Windows Serer 2016, 16 GB. 18 euros.

Vultr is better?

Offline

#11 2021-01-28 04:08:27

edwinsn
Member
Registered: 2010-07-02
Posts: 1,176

Re: Grace is an idea for mORMot - upgrade server with zero downtime

Junior/RO wrote:
edwinsn wrote:

Yes, I do. Just checked, I pay $26/month for a Vultr Windows VPS, maybe $10 is the Windows license fee.
I also use linux VPS (AWS/digitalocean/Linode)

Actually, vultr is the only big-names that provide decent Windows VPS at a reasonable price - the others is either expensive or slow.

Do you know Contabo? I'm using for a year, now. Windows Serer 2016, 16 GB. 18 euros.
Vultr is better?

I don't know Contabo. When I was switching from Linux to Windows VPS, vultr is the only acceptable option to me. I first heard about it through good words on Hacker News - which is a trust worthy community to me.

Here is the stats:
CPU: 1 vCore
RAM: 2048 MB
Storage: 55 GB SSD
Bandwidth: 2000 GB/Month
Price: $26 (VPS: $10; Windows License Fee: $16 ) = eur21.5

Maybe we can use mORMot sample 09 + Apace ab to do a side-by-side benchmark?
Maybe we can even ask all member on this forum to share about their VPS statistics? wink

Last edited by edwinsn (2021-01-28 05:55:55)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#12 2021-01-28 05:45:08

Vitaly
Member
From: UAE
Registered: 2017-01-31
Posts: 167
Website

Re: Grace is an idea for mORMot - upgrade server with zero downtime

edwinsn wrote:

Maybe we can use mORMot sample 09 + Apace ab to do a side-by-side benchmark?
Maybe we can even ask all member on this forum to share about their VPS statistics? wink

It would be a piece of nice and useful information smile I guess, at some point, everybody gets the need to have some cheap and stable standalone server (at least, for testing). And this information can make the choice easier.
Currently, I'm not using any, but I assume I may need one someday in the future.

I used ultravds.com for years: adjustable, fast, no direct limits, cheap. I had no single problem with it.
In my case, it was even cheaper -40%: 20% for yearly payment and 20% for the rare promo code, which one guy gave to me on some forum many years ago (checked it, still works, btw, if somebody needs it).
But! it is located in Russia. So, think twice. Probably, it is just a corrupted opinion of the man, living in Russia, but I would not use it for something important or sensitive.

Last edited by Vitaly (2021-01-28 05:45:36)

Offline

#13 2021-01-28 09:16:02

pvn0
Member
From: Slovenia
Registered: 2018-02-12
Posts: 202

Re: Grace is an idea for mORMot - upgrade server with zero downtime

I assume most of you are programming in Delphi and as a result are forced to host your servers on windows or is there a different reason?

Offline

#14 2021-01-28 10:14:40

Vitaly
Member
From: UAE
Registered: 2017-01-31
Posts: 167
Website

Re: Grace is an idea for mORMot - upgrade server with zero downtime

My current personal situation:
- my employer sticks Delphi (a huge old legacy product),
- the client of my employer uses Windows infrastructure.
In addition, I have much less experience with Unix smile it just happened so.
And I would admit that with all Windows disadvantages (and prices) it is always easier to start/work with it, especially if you have some lack of knowledge/experience.

Offline

#15 2021-01-28 10:20:03

tbo
Member
Registered: 2015-04-20
Posts: 195

Re: Grace is an idea for mORMot - upgrade server with zero downtime

edwinsn wrote:

Maybe we can use mORMot sample 09 + Apace ab to do a side-by-side benchmark?
Maybe we can even ask all member on this forum to share about their VPS statistics? wink

Windows Server 2019
CPU: 4 vCore
RAM: 6 GB (min), 12 GB (max)
Storage: 200 GB SSD-Boost
Bandwidth: 1000 MBit / Traffic Flatrate
Price: 15 EUR/Month regular price / I pay 10 EUR/Month (promotional offer that exists from time to time)
webtropia

Recently I started my first attempt with Linux. I ported a project with the description from the help to FPC/Lazarus. It takes a while to get used to it, but then you get along well.
webtropia vps-hosting

With best regards
Thomas

Last edited by tbo (2021-01-28 10:38:25)

Offline

#16 2021-01-28 11:07:31

edwinsn
Member
Registered: 2010-07-02
Posts: 1,176

Re: Grace is an idea for mORMot - upgrade server with zero downtime

tbo wrote:
edwinsn wrote:

Maybe we can use mORMot sample 09 + Apace ab to do a side-by-side benchmark?
Maybe we can even ask all member on this forum to share about their VPS statistics? wink

Windows Server 2019
CPU: 4 vCore
RAM: 6 GB (min), 12 GB (max)
Storage: 200 GB SSD-Boost
Bandwidth: 1000 MBit / Traffic Flatrate
Price: 15 EUR/Month regular price / I pay 10 EUR/Month (promotional offer that exists from time to time)
webtropia

Hey Thomas, the webtropia specs looks better than vultr! Not sure about the stability and support...

Where did you get the offer and where I can possibly receive it wink

Last edited by edwinsn (2021-01-28 11:17:55)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#17 2021-01-28 11:34:09

tbo
Member
Registered: 2015-04-20
Posts: 195

Re: Grace is an idea for mORMot - upgrade server with zero downtime

edwinsn wrote:

Not sure about the stability and support...

Where did you get the offer and where I can possibly receive it wink

I have been using it for years and have only had good experiences with the hardware and support. They have a backbone of 1340 Gbit. But these are only my personal experience.

Frankfurt is the largest Internet hub in the world. Many large and medium-sized companies have settled here. The good infrastructure ensures a lot of competition. And what is very important to me, there is a strict data protection regulation in the EU.

You can find the coupons on their blog or from time to time on coupon portals on the internet.

With best regards
Thomas

Offline

#18 2021-01-28 12:05:48

pvn0
Member
From: Slovenia
Registered: 2018-02-12
Posts: 202

Re: Grace is an idea for mORMot - upgrade server with zero downtime

Vitaly wrote:

My current personal situation:
- my employer sticks Delphi (a huge old legacy product),
- the client of my employer uses Windows infrastructure.
In addition, I have much less experience with Unix smile it just happened so.
And I would admit that with all Windows disadvantages (and prices) it is always easier to start/work with it, especially if you have some lack of knowledge/experience.

I was in same situation years ago so I understand. Switching to unix was a real eye opener for me but it's true like you said, when you're new to unix it can get very frustrating when you want to get something done quickly.

Offline

#19 2021-01-29 06:23:57

squirrel
Member
Registered: 2015-08-13
Posts: 124

Re: Grace is an idea for mORMot - upgrade server with zero downtime

Moving to Linux can be very frustrating, but is absolutely worth it.  I would move the rest of my work to Linux in a heartbeat if Delphi could run natively on it.  Ironically Lazarus is the tool keeping me on Windows.  There just is not enough patience in the world to make that possible.

Offline

#20 2021-01-29 18:04:49

Junior/RO
Member
Registered: 2011-05-13
Posts: 201

Re: Grace is an idea for mORMot - upgrade server with zero downtime

edwinsn wrote:

Maybe we can use mORMot sample 09 + Apace ab to do a side-by-side benchmark?
Maybe we can even ask all member on this forum to share about their VPS statistics? wink

It's a great idea. I'm recovering from Covid-19 now and I think that next week I can do this.

Yesterday was the first day - in 20 days - that I had energy to use the computer.

Offline

#21 2021-01-29 20:13:27

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,191
Website

Re: Grace is an idea for mORMot - upgrade server with zero downtime

@Junior
Sorry to read this.
I hope you will get more and more energy back!

Offline

#22 2021-01-30 03:47:53

edwinsn
Member
Registered: 2010-07-02
Posts: 1,176

Re: Grace is an idea for mORMot - upgrade server with zero downtime

@Junior,
Sorry to hear that and I'm glad you are recovering!

Take care, @ab and all.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#23 2021-02-02 17:53:05

Junior/RO
Member
Registered: 2011-05-13
Posts: 201

Re: Grace is an idea for mORMot - upgrade server with zero downtime

Thank you guys.

Offline

#24 2021-04-21 17:13:14

edwinsn
Member
Registered: 2010-07-02
Posts: 1,176

Re: Grace is an idea for mORMot - upgrade server with zero downtime

Since I'm experiencing some RDP connection issues with my vultr Windows VPS recently (the issue maybe on my side, you know, GFW...), today I'm checking the pricing of Contabo. Wow, it's even cheaper than vultr, and the spec is better. Not sure about real use experience though...

Last edited by edwinsn (2021-04-22 04:23:53)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#25 2021-04-21 20:58:07

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 13,191
Website

Re: Grace is an idea for mORMot - upgrade server with zero downtime

If it is really "German quality", it is the cheapest and best product per price I have found, for sure.

I wonder what is the real bandwidth available: what is their peering with regular Internet provider in Europe and in the world?

Offline

#26 2021-04-22 04:26:05

edwinsn
Member
Registered: 2010-07-02
Posts: 1,176

Re: Grace is an idea for mORMot - upgrade server with zero downtime

And it turned out that they are not able to accept payments from people in China... very strange nowadays - we use Vista cards, paypal, and so on...

Last edited by edwinsn (2021-04-22 16:04:56)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#27 2021-04-22 06:24:46

pvn0
Member
From: Slovenia
Registered: 2018-02-12
Posts: 202

Re: Grace is an idea for mORMot - upgrade server with zero downtime

those prices at Contabo are just ridiculous, looking at some customer experiences on social sites, the performance seems to be terrible, possibly due to running shoddy hardware and over provisioning multiple users on the same node.

Offline

#28 2021-04-22 06:37:15

edwinsn
Member
Registered: 2010-07-02
Posts: 1,176

Re: Grace is an idea for mORMot - upgrade server with zero downtime

yep, maybe, you get what you pay for...


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#29 2021-04-22 11:45:48

danielkuettner
Member
From: Germany
Registered: 2014-08-06
Posts: 305

Re: Grace is an idea for mORMot - upgrade server with zero downtime

Contabo is top! I used there services since 2018 without issues.

Offline

#30 2021-04-22 11:54:34

pvn0
Member
From: Slovenia
Registered: 2018-02-12
Posts: 202

Re: Grace is an idea for mORMot - upgrade server with zero downtime

danielkuettner wrote:

Contabo is top! I used there services since 2018 without issues.


VPS or dedicated?

Offline

#31 2021-04-22 12:02:44

danielkuettner
Member
From: Germany
Registered: 2014-08-06
Posts: 305

Re: Grace is an idea for mORMot - upgrade server with zero downtime

VPS, VDS  and Dedicated.

Dedicated is really cheap (ca. 300 EUR p.m.).
For a mongo shared cluster with 9 machines I'm using VPS-L SSD (14,99 per machine p.m.). This works stable but for production I should use VDS instead.

Offline

Board footer

Powered by FluxBB