smoxy
English
English
  • Welcome to smoxy
  • Changelog
  • Support Contact
  • Migration of Load Balancers and Domains
  • Account
    • What is an Account?
    • Site Overview
      • Add a new domain
    • Origins & Loadbalancer
    • Domain Overview
      • SSL
    • DNS Overview
    • Team
    • IP Lists
    • Billing
  • Sites
    • What is a Site?
    • Dashboard
    • Page Rules
      • Page Rules - Use Cases
    • Conditional Rules
      • Conditional Rules - Use Cases
    • Image Optimization
    • Acceleration
    • Security
    • Basic Configuration
    • Redirect Sites
  • Developer Guide
    • GeoIP Headers (Request Metadata)
    • Cache Invalidation
    • Best Practices
      • Services Sites
      • Flush Tags
      • Test configuration options
      • Cache key configuration for images
    • Cloudflare Setup
    • Frameworks
      • Shopware 6
Powered by GitBook
On this page
  • Managing Origins and Load Balancers in smoxy
  • Origins Management
  • Adding an Origin
  • Load Balancers Management
  • When Should You Use Load Balancers?
  • Adding a Load Balancer
  • Configuring Origins or Load Balancers for a Site

Was this helpful?

  1. Account

Origins & Loadbalancer

Last updated 6 months ago

Was this helpful?

Managing Origins and Load Balancers in smoxy

The Origins and Load Balancers page in smoxy allows you to configure origin servers and load balancers to manage traffic effectively for your smoxy account. This page is divided into two sections: Origins and Load Balancers.

Origins Management

The origins section is designed to define and manage your origin servers, which serve as the backend destinations for your traffic. An origin server is the server where smoxy will forward traffic that is being handled by your site. This could be a web server, an application server, or any server hosting the resources your users need to access.

Adding an Origin

To add a new origin:

  1. Click the "Add Origin" button.

  2. Provide the following information:

    • Name: A unique identifier for the origin server.

    • Protocol: Choose between http or https.

    • IPv4: Enter the IPv4 address of the origin server.

    • Port: Specify the port the server listens to (e.g., 80 for HTTP or 443 for HTTPS).

Load Balancers Management

The load balancers section allows you to configure rules for distributing traffic across multiple origin servers. This is an essential feature for applications that rely on more than one server to handle their traffic. Load balancing ensures that incoming requests are distributed evenly or according to specified rules across your servers, improving performance and reliability.

When Should You Use Load Balancers?

If your application relies on multiple servers to handle traffic (e.g., for scaling, redundancy, or fault tolerance), the Load Balancer feature in smoxy is what you need.

Before you can use a load balancer:

  1. You must first create an origin for each of your servers.

  2. Once all the origins (representing your servers) are set up, you can configure a load balancer to distribute traffic among them.

By using smoxy's load balancer, no additional services or servers are required to handle the load balancing process. smoxy itself will take care of balancing the traffic between your servers, simplifying your infrastructure.

Adding a Load Balancer

To create a new load balancer:

  1. Click the "Add a Loadbalancer" button.

  2. Configure the following:

    • Name: A unique name for the load balancer.

    • Hostname (Optional): Define a custom hostname that will overwrite the hostname of all requests passing through this load balancer.

    • Assign Origins: Choose one or more previously created origins to be part of this load balancer.

      • For each origin, set a weight (e.g., 1, 2, 3, etc.) to control the traffic distribution ratio between the selected origins. A higher weight means more traffic will be directed to that origin.

Configuring Origins or Load Balancers for a Site

Once you have defined your origins and load balancers, you can assign them to specific sites:

  1. Navigate to the "Basic Configuration" section of the desired site.

  2. Locate the "Origin or Loadbalancer" setting.

  3. Select one of the following:

    • An Origin: Assign traffic to a specific origin server.

    • A Load Balancer: Assign traffic to a load balancer that manages traffic distribution between multiple origins.

This configuration determines where the traffic for the site will be sent by default.

Overview of origins and load balancer
Adding a new origin
Updating a load balancer
Basic configuration of a sites origin or loadbalancer