9 More Discussions You Might Find Interesting
1. Virtualization and Cloud Computing
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... (2 Replies)
Discussion started by: MadeInGermany
2 Replies
2. Linux
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)
Discussion started by: Nats
1 Replies
3. AIX
Would anyone please kindly help to solve this problem...
An LPAR with the below network configuration. ent0 and ent1 are logical lan (virtual ethernet) from VIO SEA.
en0
1.2.3.4 <- boot ip
192.168.1.1 <- persistent ip
192.168.1.10 <- service ip
en1
11.22.33.44 <- boot ip
When I... (6 Replies)
Discussion started by: skeyeung
6 Replies
4. UNIX for Advanced & Expert Users
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)
Discussion started by: robo
0 Replies
5. AIX
hi,
when I do a failover, hacmp always starts db2 but recently it fails to start db2..noticed the issue is db2nodes.cfg is not modified by hacmp and is still showing primary node..manually changed the node name to secondary after which db2 started immediately..unable to figure out why hacmp is... (4 Replies)
Discussion started by: gkr747
4 Replies
6. Red Hat
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)
Discussion started by: aixlover
1 Replies
7. AIX
Hi All,
How do I trigger the failover on the second hacmp server?
Please give me idea and I will do the rest.
Thanks,
itik (2 Replies)
Discussion started by: itik
2 Replies
8. AIX
Hello All,
Here is a snipet from our cluster.log, I was wondering if anyone could shed some light on what may have caused the failover.
The first two lines indicate a possible memory issue which I am currently looking into.
Thanks. (0 Replies)
Discussion started by: Wez
0 Replies
9. Programming
Halo mates,
I m going to write a load balancer with C. Does anybody know some good reference on this?
Cheers,
Elton (5 Replies)
Discussion started by: EltonSky
5 Replies
DBIx::Class::Storage::DBI::Replicated::Balancer(3) User Contributed Perl Documentation DBIx::Class::Storage::DBI::Replicated::Balancer(3)
NAME
DBIx::Class::Storage::DBI::Replicated::Balancer - A Software Load Balancer
SYNOPSIS
This role is used internally by DBIx::Class::Storage::DBI::Replicated.
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.
ATTRIBUTES
This class defines the following attributes.
auto_validate_every ($seconds)
If auto_validate has some sort of value, run "validate_replicants" in DBIx::Class::Storage::DBI::Replicated::Pool every $seconds. Be
careful with this, because if you set it to 0 you will end up validating every query.
master
The DBIx::Class::Storage::DBI object that is the master database all the replicants are trying to follow. The balancer needs to know it
since it's the ultimate fallback.
pool
The DBIx::Class::Storage::DBI::Replicated::Pool object that we are trying to balance.
current_replicant
Replicant storages (slaves) handle all read only traffic. The assumption is that your database will become readbound well before it
becomes write bound and that being able to spread your read only traffic around to multiple databases is going to help you to scale
traffic.
This attribute returns the next slave to handle a read request. Your "pool" attribute has methods to help you shuffle through all the
available replicants via its balancer object.
METHODS
This class defines the following methods.
_build_current_replicant
Lazy builder for the "current_replicant_storage" attribute.
next_storage
This method should be defined in the class which consumes this role.
Given a pool object, return the next replicant that will serve queries. The default behavior is to grab the first replicant it finds but
you can write your own subclasses of DBIx::Class::Storage::DBI::Replicated::Balancer to support other balance systems.
This returns from the pool of active replicants. If there are no active replicants, then you should have it return the master as an
ultimate fallback.
around: next_storage
Advice on next storage to add the autovalidation. We have this broken out so that it's easier to break out the auto validation into a
role.
This also returns the master in the case that none of the replicants are active or just forgot to create them :)
increment_storage
Rolls the Storage to whatever is next in the queue, as defined by the Balancer.
around: select
Advice on the select attribute. Each time we use a replicant we need to change it via the storage pool algorithm. That way we are
spreading the load evenly (hopefully) across existing capacity.
around: select_single
Advice on the select_single attribute. Each time we use a replicant we need to change it via the storage pool algorithm. That way we are
spreading the load evenly (hopefully) across existing capacity.
before: columns_info_for
Advice on the current_replicant_storage attribute. Each time we use a replicant we need to change it via the storage pool algorithm. That
way we are spreading the load evenly (hopefully) across existing capacity.
_get_forced_pool ($name)
Given an identifier, find the most correct storage object to handle the query.
AUTHOR
John Napiorkowski <jjnapiork@cpan.org>
LICENSE
You may distribute this code under the same terms as Perl itself.
perl v5.18.2 2014-01-05 DBIx::Class::Storage::DBI::Replicated::Balancer(3)