Skip to content

kbukum/xbalancer

Repository files navigation

Proxy Load Balancer (xbalancer)

Motivation

Xbalancer is used to balance host by your own filter mechanism. You can add to and remove from database and automatically it will added or removed from http proxy balancer.

Provides common operations for all libraries.

Includes persistence entities.

Provides to Load Balancing Host by the given filter.

Includes all Repositories for persistence entities.

Provides services for persistence and proxy.

Provides Json Token mechanism security.

Provides Assets to represent

Integrates all configuration ( Rest Servlet, Context, Datasource, Proxy Configuration, Assets Configuration ) by using Spring boot.

Project Detail ..more

  • You can see Project Detail after install and run aplication.
  • Also defined Project Detail in xbalancer/xbalancer-web/src/main/resources/docs folder

Run Project on any IDE

url: http://localhost:8181 username: admin password: 123123

Host1: http://127.0.0.1:8283 Host2: http://127.0.0.1:8284 Host3: http://127.0.0.1:8285

Proxy Server Configuration

Dynamic Proxy Configuration.

  balancer:
    host:
      name: Balancer Server # proxy server name
      host: 127.0.0.1 # proxy server host
      port: 8282 # proxy
    dynamic: true  # default true. get proxies as manuel from property or dynamic from @ProxyService
Start Dummy Server
  • xbalancer-dummy is provides to run dummy server.

You can run a server with main arguments.

  • Arguments

--name server1 --host localhost --port 8183

Manuel Proxy Server Configuration
  balancer:
      name: Balancer Server # proxy server name
      host: 127.0.0.1 # proxy server host
      port: 8282 # proxy
    dynamic: false  # get proxies as manuel from property or dynamic from @ProxyService
    all: "*"
    proxies: # proxy relations.
      h1h2: [Host1, Host2] # http://127.0.0.1:8080/h1h2 broadcasts **Host1** and **Host2**
      h1h2: [Host1, Host3] # http://127.0.0.1:8080/h1h3 broadcasts **Host1** and **Host3**
    hosts:
      - name: Host1
        host: 127.0.0.1
        port: 8283
      - name: Host2
        host: 127.0.0.1
        port: 8284
      - name: Host3
        host: 127.0.0.1
        port: 8285

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages