Hello,
in case somebody has a NoMachine NX cluster, and is suffering from its dumb round-robin dispatcher, here is a solution:
nxpub (NX Pluggable User Balancer).
It should run on all LUnix OS. Scripts for install/uninstall are supplied.
While tested with NX 3 (NX 3.5 is the latest), it might run on the older NX 2 and can be ported to NX 4 or Open NX.
This User Gave Thanks to MadeInGermany For This Post:
Hi All,
How do I failover on the ip load balancer (back and forth)? It involves first to load a new config on the passive ip. If success, load the new config on the ip active (which is now passive).
Any idea, please.
Thanks in advance. (0 Replies)
Hi,
What's the best load balancer for Linux (CentOS, SuSE) according to your personal experience?
Linux Virtual Server (LVS) is a famous one, but their download site has not been updated since 2007. Their web and mailing list are so quiet. Is the Ultra Monkey project including LVS... (1 Reply)
we use piranha load balancer with two nodes
even the primary node is running fine and up failover happend to secondary node
this happend quite few times ehy node2 cannot talk to node1
what logs are to be checked and investigate why failover occured
pulse: partner dead: activating... (0 Replies)
Hello Guys,
Hope you all doing well . :)
I was checking load balance command (uptime)on VM server and got below output.
# uptime
07:08:40 up 52 min, 2 users,a load average: 0.45, 0.11, 0.03
A :How we can calculate load average?
Thank you in advance !!
Cheers:)
Dont forget... (1 Reply)
DBIx::Class::Storage::DBI::Replicated::Balancer::Random(User Contributed Perl DocumentDBIx::Class::Storage::DBI::Replicated::Balancer::Random(3pm)NAME
DBIx::Class::Storage::DBI::Replicated::Balancer::Random - A 'random' Balancer
SYNOPSIS
This class is used internally by DBIx::Class::Storage::DBI::Replicated. You shouldn't need to create instances of this class.
DESCRIPTION
Given a pool (DBIx::Class::Storage::DBI::Replicated::Pool) of replicated database's (DBIx::Class::Storage::DBI::Replicated::Replicant),
defines a method by which query load can be spread out across each replicant in the pool.
This Balancer uses List::Util keyword 'shuffle' to randomly pick an active replicant from the associated pool. This may or may not be
random enough for you, patches welcome.
ATTRIBUTES
This class defines the following attributes.
master_read_weight
A number greater than 0 that specifies what weight to give the master when choosing which backend to execute a read query on. A value of 0,
which is the default, does no reads from master, while a value of 1 gives it the same priority as any single replicant.
For example: if you have 2 replicants, and a "master_read_weight" of 0.5, the chance of reading from master will be "20%".
You can set it to a value higher than 1, making master have higher weight than any single replicant, if for example you have a very
powerful master.
METHODS
This class defines the following methods.
next_storage
Returns an active replicant at random. Please note that due to the nature of the word 'random' this means it's possible for a particular
active replicant to be requested several times in a row.
AUTHOR
John Napiorkowski <john.napiorkowski@takkle.com>
LICENSE
You may distribute this code under the same terms as Perl itself.
perl v5.14.2 2010-06-03 DBIx::Class::Storage::DBI::Replicated::Balancer::Random(3pm)