Skip to main content

Provides a simple server serving a static directory, which can be configured as haproxy backup server, kicking in when all normal servers are offline.

How it works

It is simple HTTP server, serving a static directory. All requests which match no file in the static directory are responded with the index.html which is expected to be placed in the static directory.

This is useful when a user is visiting the page at any URL while the maintenance server is activated. The user then stays at the same URL and can refresh until the system is back online and he is at the same place as he was before.

Installation

The server can be installed using zc.buildout, which generates a pre configured bin/maintenance script:

[buildout]
parts += maintenance

[maintenance]
recipe = zc.recipe.egg
eggs = ftw.maintenanceserver
arguments = '${buildout:directory}/static', 8088

HAProxy configuration

When using HAProxy the server can be simply configured as backup server, which will only be used when all “normal” servers are offline:

backend plone
server plone1 127.0.0.1:8080 cookie p1 check downinter 15s maxconn 5 rise 1 slowstart 60s
server plone2 127.0.0.1:8081 cookie p2 check downinter 15s maxconn 5 rise 1 slowstart 60s
server maintenance 127.0.0.1:8088 check backup

Changelog

1.1.2 (2017-11-28)

  • Respond with 200 OK to resources request. [njohner]

  • Fix tests to be compatible with most recent ftw.testbrowser. [lgraf]

1.1.1 (2017-02-03)

  • Avoid caching maintenance server responses. [jone]

1.1.0 (2016-03-12)

  • Allow setting a different listening address as optional parameter. Default is still localhost. pass an empty string to listen to all addresses on a host. [fredvd]

1.0.2 (2015-01-21)

  • Fix broken pipe error when connections are closed early by the client. [jone]

1.0.1 (2014-03-21)

  • Ignore virtualHostMonster configuartions in paths. [jone]

1.0.0 (2014-03-21)

  • Initial implementation. [jone]

Release files for ftw.maintenanceserver 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ftw.maintenanceserver 1.1.2
File Size Uploaded
ftw.maintenanceserver-1.1.2.tar.gz 12.6 kB Details

Release files / ftw.maintenanceserver-1.1.2.tar.gz

Download URL ftw.maintenanceserver-1.1.2.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c912fe80efda38c216549ee1c89fb2420984e6a5f2b70d8976c2deac17526d08
BLAKE2b-256 checksum
How to use checksums
64d244101087d186f137f76651033191a965696c5be20c8a15f09041556730a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.2 This release

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page