Skip to main content
Haproxy publishing
============================

Haproxy plugin install haproxy as a load balancer for mcloud. Plugin is useful when you need
deploy multiple applications on one server, or use complex application publishing


Multiple applications
-------------------------

.. uml::

cloud Internet {

}

package Docker {
[Haproxy] << Load Balancer >>

database App1 {
[nginx.myapp]
[another.myapp]
[something.myapp]
}

database App2 {
[nginx.another]
[another.another]
}

Haproxy ..> nginx.myapp
Haproxy ..> nginx.another

}

Internet ..> Haproxy


Multiple versions
-------------------------


.. uml::

cloud Internet {

}

package Docker {
[Haproxy] << Load Balancer >>

[nodejs.app_v1]
[nodejs.app_v2]

Haproxy ..> nodejs.app_v1
Haproxy -> nodejs.app_v2
}

Internet ..> Haproxy


Haproxy template
-----------------------

You can use your own template by placing it in /root/.mcloud/haproxy.tpl. Mcloud kindly places default config there.

.. highlights::

Template is Jinja2 template http://jinja.pocoo.org/docs/

To apply your changes to template restart mcloud::

$ docker restart mcloud

Default tamplate
^^^^^^^^^^^^^^^^^^

.. literalinclude:: mcloud_haproxy.py
:lines: 21-94
:language: jinja

Metadata

Release files for mcloud-plugin-haproxy 1.0.4

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

Source distribution (sdist)

Source distribution for mcloud-plugin-haproxy 1.0.4
File Size Uploaded
mcloud-plugin-haproxy-1.0.4.tar.gz 4.7 kB Details

Release files / mcloud-plugin-haproxy-1.0.4.tar.gz

Download URL mcloud-plugin-haproxy-1.0.4.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c7e300139b6fe5abc0e5ca3562ee1e1cd4fdc76ef845997e1bb95690c95cf88a
BLAKE2b-256 checksum
How to use checksums
060a0a944f1f29879aae63d66c58771cd1dc98a9ba70f0511a6deb5f80fd83bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

0.11.10

1 release file

0.11.9

1 release file

0.10.13

1 release file

0.10.12

1 release file

0.10.11

1 release file

0.10.10

1 release file

0.10.9

1 release file

0.10.8

1 release file

0.10.7

1 release file

0.1.1

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