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 Provenance Actions
mcloud-plugin-haproxy-1.0.4.tar.gz 4.7 kB Without provenance Details for mcloud-plugin-haproxy-1.0.4.tar.gz

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

Security for mcloud-plugin-haproxy 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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