Can someone please explain "How we can prioritize the load to jboss instances?" - jboss5.x

I just want to understand is there any kind of worker manager concept like weblogic server in Jboss? if yes please explain me how can we achieve?
Thanks,
Amarnath

You can by setting following properties in file conf/workers.properties
# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2
worker.loadbalancer.sticky_session=1
Read more Configuring load balancing using Apache and mod_jk
Hoping this helps.
Cheers !!

Related

FlowForce - monitoring and alerting tool

I had to configure AppDynamics alerts in the past for Java applications I worked for.
I also heard of Nagios, but I am not very sure how that works.
Now, I need to configure alerts for a FlowForce Server, but I don't believe it can be integrated with AppDynamics or Nagios.
I saw FlowForce allow me to send some alerts, like when a step of a job fails, but I would like to have some server alerts, like, for instance, if the license expires and, as a result, the server is automatically shut down.
I am wondering the best way to achieve it.
I am running it on a Windows environment BTW.
Suggestions are welcome.
Thank you in advance!
I found my answer on the Flow Force online help (https://manual.altova.com/flowforceserver/flowforceserver/)
The Flow Force is deployed as two servers, which in a window env, can be started and stopped as windows services (can be found via "Control Panel">"Administrative Tools">Services). With this information, I can monitor them via NAGIOS.

Looking for PostgreSQL or MySQL LogAppender

Has anyone point me to a PostgreSQL log appender for kaa? Thanks a lot!
James
We had a requirement similar to this. We wrote a custom JDBC log appender which was very customized for our needs and requirements.
You can find a guide to creating custom log appender in documentation. Also here is the code examples of log appenders available in Kaa by default.
I used Django and postgres on AWS and created a rest API within the django app. Was quite easy to set it up. You can reference the procedure here. It all worked fine with the already built-in REST log appender in the kaa sandbox.

Connecting remotely to Titan Server? [from code]

I want to connect from my code (a scala project) to TitanDB. Code and gremlinserver/titandb are in two different hosts.
In this example, the connection is made from the same host in which titandb has been installed.
What if I don't run the code in the same host?
I imagine there could be a configuration file in which I put the hostname and the port. But I can't find anything like it.
So the question is: is connecting remotely, from code, to Titan Server possible?
Thank you in advance
I think this might be helpful.
You can just connect your application to the local instance of Titan DB. You only have to properly configure the index and the backend storage of each instance of Titan.
Hope this helps.
I am not exactly sure how it may work with scala but with java you can just pass into the factory a configuration file based on what is outlined here. e.g.
graph = TitanFactory.open('path/to/configuration.properties')
In that configuration you can specify a remote host.

OpenLdap redirect on write

I am currently trying to setup a redirect on write for an installation of OpenLdap 2.2.
I have two instances running. One is configured to be read-only (only read access, database specified as read-only) and has redirect configured to point to the second instance. The second instance is configured to allow for the desired write permissions.
When I attempt a modify on the first instance it fails as expected but does not send back the referral. Am I missing a piece of the configuration? Am I even on the right path? Any guidance would be greatly appreciated. Thanks.
In the database section of you slapd.conf do you add the redirection like this ? :
updateref "ldap://master-host:port/"
So, it turns out the best way to do this is to go ahead and set up replication using slurpd and point all requests at the slave instance. Unfortunately you can't set up the master and slave on the same host (for obvious reasons, but still), so I had to spin up a second VM to get this going.
Honestly, if I was not trying to replicate a redirect problem it wouldn't be worth it, but I have to duplicate a production issue.
For more information on slapd and specifically slurpd, the OpenLDAP documentation is actually crazy helpful: slurpd config for OpenLDAP 2.2

Where to configure the org.jboss.ejb3.mdb.MdbDelegateWrapper

I need to reduce the pool size of an MDB to 5 because it connect to an external resource that is limited in terms of connections. If I have 15 messages in my JMS queue, then only 5 msg are process successfully and the other 10 are waist because of connection error happening in the MDB code.
I show this setup in the Jboss JMX-console:
I'm using Jboss 4.2.3. I need to know where I can edit this MaxPoolSize config. I searched everywhere but haven't found it.
Thanks
I guess adding the limit in 'instance-pool' in Jboss.xml should do it.
Check this blog article and Jboss docs to see how to use 'instance-pool' and 'strictMaximumSize'