kryptokrona
  • Welcome to the Kryptokrona Wiki
  • ❓About
    • About Kryptokrona
    • Background and History
    • Kryptokrona Community
    • Contributing
    • Contributors
    • Frequently Asked Questions
    • Getting Started
    • Supporting
    • Technical Data
    • Timeline
  • 😎Developer
    • 😎Kryptokrona
      • Compiling from Source
      • Forking Kryptokrona
      • Local Testnet
      • Developer Resources
      • Running a Node on a Pi
      • Subwallets
      • kryptokronad behind HAProxy
      • CI/CD
      • Versioning
      • Help and Support
      • Kryptokrona API Docs
        • Daemon JSON RPC API
        • kryptokrona-wallet-backend-js
        • kryptokrona-service
        • RPC Errors
        • Wallet RPC API
        • Daemon HTTP RPC API
    • 🐦Hugin API
      • Setup
      • API usage examples
      • Build Test and Deployment
      • Dashboard
      • Database
      • Help and Support
      • Onion Services
      • Technologies
      • Test Environment
      • Testing
      • Websockets
      • Sponsors
      • Contribute
    • 🧰Kryptokrona Kotlin SDK
      • Getting Started
      • How To Use Kryptokrona SDK
  • 🎓Guides
    • 👛Wallets
      • 📜Making a Paper Wallet
      • 👜Making a Kryptokrona Wallet
      • 🚑Recovering your Wallet
      • 💻Using Kryptokrona Desktop Wallet
      • 💻Using Kryptokrona Desktop Wallet *deprecated*
      • 🛰️Using Remote Nodes
      • 👾Command Line
        • Using xkrwallet
    • 🐦Hugin API
      • Deploy Your Own Hugin API
  • 🐦Hugin Messenger
    • 📱How to use Hugin Mobile
  • 🕸️Node
    • 😇Deploy a Public Node (manually)
    • 🚢Deploy node with Docker
    • 🦅Deploy a Hugin Full Node with Docker
    • 🍇Run a Node on a Raspberry Pi
    • ✏️How to configure the node?
    • 🥾Node bootstrap
  • ⛏️Mining
    • ⛏️Get started with mining
    • 😎Solo-mining Kryptokrona
    • 🍇Mining with a SBC
    • 🧑‍🎓🧑🎓 Mining Intro
    • 📒Notes
    • 🌊Mining Pools
    • 🚚Mining with XMRig
    • 🏊‍♂️🏊♂ Run a Mining Pool
    • 📱Mining on Android
    • Mining on macOS
    • 🍯Mining on HiveOS
Powered by GitBook
On this page
  1. Developer
  2. Kryptokrona

kryptokronad behind HAProxy

PreviousSubwalletsNextCI/CD

Last updated 2 years ago

From polar-it on Discord

There is a lot to add to this to fill details, however this is enough for people familar to get going ;)

If you are not familar with HAProxy then check it out if you're a sysadmin/devops person it is pretty great. If you are a Containers/Kubernetes kind of person then this kind of thing is handle by the load balancers, sometimes they are HAProxy under the covers.

Combine the below with iburnmycd's and and you should have a farily reliable end point for daemon requests.

#---------------------------------------------------------------------
# main frontend which proxys to the backends
#---------------------------------------------------------------------
frontend  main *:11898

    default_backend            trtl-daemon 

#---------------------------------------------------------------------
# round robin balancing between the various backends
#---------------------------------------------------------------------
backend trtl-daemon 
    balance     roundrobin
    option httpchk GET /getinfo
    http-check expect rstring true

# Local node on port 11999
    server  app1 127.0.0.1:11999 check
    server  app2 < node host1 >:11898 check
    server  app3 < node host2 >.11898 check
    server  app4 < node host3 >:11898 check

polar-it: This actually work on

😎
😎
turtlecoind-ha
turtlecoin-api-proxy
trtl-explorer.xhub.cloud