Sponsored Content
Top Forums Web Development Restart TomEE frequently because URL is not responding Post 303031362 by hicksd8 on Wednesday 27th of February 2019 04:32:05 AM
Old 02-27-2019
Be warned that bumping posts are against the rules on this forum and moderators might sanction you for it.

Which load balancer (LB) are you using??

However, I would be likely to compare the 4 configurations (conf/server.xml) to explore any differences seen. TomEE still uses normal Tomcat Clustering and that needs checking out.

I would be inclined to guess that the LB is not overloading node1, on the contrary, the LB is continuing to send requests to node1 after that node has failed (for some reason). There is a fault (hardware, software or configuration) with node1.

The two minute delay you see to load the page is, in fact, the timeout before the request is successfully delivered to a surviving node. If everything is configured properly, it shouldn't take this long. Furthermore, once the failed node is kicked out of the cluster (until you issue the command for it to rejoin), the LB should know that node1 is dead and no longer send requests to it. You then run on three nodes after failover and all is fine and dandy.

So your problem is that failover is not occurring in an orderly fashion. I would confirm whether node1 is actually joining the cluster at all or you have a cluster of three plus a stand-alone node.

The way it should work is that the four cluster members should know immediately if one of them fails. The failed node gets kicked out. The surviving nodes relay this state to the LB which no longer sends requests to the failed node.

Which LB are you using??

Ref:
Apache TomEE
How to Setup Load Balancing in Tomcat/TomEE with mod_proxy_balancer - Simples Assim
Tomcat Clustering - A Step By Step Guide | MuleSoft
This User Gave Thanks to hicksd8 For This Post:
 

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

why i havent been posting so frequently...

to start, i will continue to be an active member of this community and still love computers and unix based operating systems. ive been busy recently with a pretty big project, not involving unix :p one of my other hobbies is automobiles. i have a 1986.5 toyota supra, now if anyone here has... (8 Replies)
Discussion started by: norsk hedensk
8 Replies

2. UNIX for Dummies Questions & Answers

Server rebooting frequently

O/P of the uname -a Server Server 4.0 3.0 3516 Pentium IV(TM)-ISA/PCI Server is getting rebooted frequetly... I don't know what is the problem in server ... Any help why the server is getting rebooted frequetly. Can i check what is the problem like in log files (5 Replies)
Discussion started by: srikanthus2002
5 Replies

3. UNIX for Advanced & Expert Users

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

4. Shell Programming and Scripting

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

5. UNIX for Dummies Questions & Answers

ReDirecting a URL to another URL - Linux

Hello, I need to redirect an existing URL, how can i do that? There's a current web address to a GUI that I have to redirect to another webaddress. Does anyone know how to do this? This is on Unix boxes Linux. example: https://m45.testing.address.net/host.php make it so the... (3 Replies)
Discussion started by: SkySmart
3 Replies

6. Web Development

Regex to rewrite URL to another URL based on HTTP_HOST?

I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST The call goes out to http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena The ID in the middle is always random due to the cookie. I... (5 Replies)
Discussion started by: EXT3FSCK
5 Replies

7. Solaris

Server Rebooting frequently

Deall All, I have facing some problem. I have a Sun 4500 Server at the customer place. Now the server is not booting mean's once the server is coming up it is automatically rebooting. As this is the critical server for the customer that is use for production . Can this be solved by... (10 Replies)
Discussion started by: sudhansu
10 Replies

8. UNIX for Dummies Questions & Answers

Awk: print all URL addresses between iframe tags without repeating an already printed URL

Here is what I have so far: find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}' Here is an example content of a PHP or HTM(HTML) file: <iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies

9. Linux

/var getting fill frequently

I have Red hat Linux server. There are 14 NFS shares which are coming from NAS. There are so many messages filling /var/log/messages, which seems like some NFS logging is enables somewhere, but I am not able to figure it out. Every few minutes, it will filll my /var (which is part of root) to 100%... (2 Replies)
Discussion started by: solaris_1977
2 Replies

10. Shell Programming and Scripting

Reading URL using Mechanize and dump all the contents of the URL to a file

Hello, Am very new to perl , please help me here !! I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file. below is the script which i have written so far , #!/usr/bin/perl use LWP::UserAgent; use... (2 Replies)
Discussion started by: scott_cog
2 Replies
vxclustadm(1M)															    vxclustadm(1M)

NAME
vxclustadm - start, stop, and reconfigure a cluster SYNOPSIS
vxclustadm abortnode vxclustadm nidmap vxclustadm [-v] nodestate vxclustadm -m {hpsg|vcs} reinit vxclustadm -m hpsg -C cluster_name -t hpsg [-j join_timeout] startnode vxclustadm -m vcs -t gab startnode vxclustadm -m vcs -C cluster_name -t gab [-j join_timeout] startnode vxclustadm stopnode DESCRIPTION
The vxclustadm utility activates and deactivates cluster functionality on a node in a cluster. Caution: Use of the clustering functionality of VxVM without a cluster monitor is not supported. Cluster reconfiguration problems may occur if there is no cluster monitor or if GAB is used as the cluster monitor. Ensure that you completely understand the functionality of this command before using it. KEYWORDS
abortnode Stops clustering activity on a node and abandons all uncompleted I/O on shared volumes. This command is for emergency shutdown. Note: This operation is not allowed in the HP Serviceguard environment. nidmap Prints a table showing the mapping between node IDs in VxVM's cluster-support subsystem and node IDs in the cluster monitor. nodestate Displays the state of a node in the cluster and the reason for last abort of the node on the standard output. Valid states are: cluster aborting The node is being aborted from the cluster. cluster member The node is a member of the cluster. All shared volumes in the cluster are accessible. joining The node is in the process of joining a cluster. It has been initialized but is not yet completely in the cluster. The node goes into this state after vxclustadm is executed with the startnode keyword. out of cluster The node is not joined to the cluster. Refer to the Veritas Volume Manager Administrator's Guide for more information about reasons why a node may leave a cluster. For debugging purposes the -v option can be specified to display the node ID, master ID, neighbor ID, current state, and reason for a node leaving the cluster (if appropriate). reinit The reinit keyword allows nodes to be added to or removed from a cluster dynamically without stopping the cluster. The command causes vxclustadm to re-read the cluster configuration file, and implement any required changes to the membership of the cluster. The -m vcs option specifies the VCS cluster monitor, which implies the existence of the cluster configuration file, /etc/VRTSvcs/conf/config/main.cf. The -m hpsg option specifies the HP Serviceguard environment, which implies the existence of the cluster configuration file, /etc/llthosts. startnode The startnode keyword initiates cluster functionality on a node using the information supplied in the cluster configuration file. This is the first command that must be issued on a node to bring it into the cluster. The argument to the -m option specifies the cluster monitor, which implies the existence of a cluster configuration file: hpsg The cluster is running in the HP Serviceguard environment, and the cluster configuration file is /etc/llthosts. Caution: Use the HP Serviceguard administration commands to update the /etc/llthosts file. Do not edit this file by hand. The argument to the -C option specifies the name of the cluster. The -j option is used to specify the cluster reconfiguration timeout in seconds. See the FILES section for more infor- mation about this timeout. Note: The -C and -j are only applicable to the HP Serviceguard environment. vcs The cluster is running in the VCS environment. The cluster configuration file is /etc/VRTSvcs/conf/config/main.cf. Caution: Use VCS commands to edit the main.cf file. Do not edit this file by hand. startnode passes the information in the cluster configuration file to the VxVM kernel. In response to this command, the kernel and the VxVM configuration daemon, vxconfigd, perform the initialization. The argument to the -t option specifies the protocol to be used for messaging: gab Use GAB as the transport agent for messaging in addition to using GAB as a cluster monitor. If you try to use GAB as a transport agent with a cluster monitor other than GAB (or outside the VCS or HP Serviceguard environment), the kernel issues a warning message and changes the transport agent to UDP. When the cluster is running in the VCS or HP Serviceguard environment, the clustering functionality of VxVM should use GAB as the transport agent for messaging. stopnode Stops cluster functionality on a node, and waits for all outstanding I/O to complete and for all applications to close shared volumes or devices. EXIT CODES
vxclustadm returns the following exit values: 2 Invalid state. 101 Node is not in cluster. 102 Node is joining the cluster, or is involved in reconfiguration. 103 Node is a cluster member. 104 Node is aborting from cluster. FILES
For a cluster that is operating without a cluster monitor, or that is using GAB as the cluster monitor outside the VCS or HP Serviceguard environment, and which is using UDP as its transport agent for messaging, the cluster configuration file, /etc/vx/cvmtab, contains the fol- lowing fields: clustername cluster_name port vxconfigd port_number port vxkmsgd port_number node node_ID name name_on_local_net timeout timeout_value ... The recommended port numbers for the vxconfigd and vxkmsgd daemons are 4500 and 4501, but any available port numbers greater than 1024 are also acceptable. name_on_local_net is the node's IP address or resolvable host name on the cluster's private network. timeout_value is the timeout value in seconds. The clustering functionality of VxVM uses this value during cluster reconfiguration. The appropriate value to use depends on the number of nodes in the cluster and on the size of the shared disk group configuration. In most cases the value of 200 seconds is sufficient but this may need to be increased for larger configurations. Comment lines in the file start with a #. If GAB is being used as the transport agent for messaging, fields relating to port numbers and local network names are not required: clustername cluster_name node node_ID name timeout timeout_value ... For a cluster running in the VCS environment, VxVM obtains information about the cluster from the VCS cluster configuration file (/etc/VRTSvcs/conf/config/main.cf). Cluster-specific information may be appended to this file by running the vxcvmconfig command. For more information refer to the Veritas Cluster File System Installation and Configuration Guide. For a cluster running in the HP Serviceguard environment, VxVM obtains information about the cluster from the /etc/llthosts file. Cluster- specific information may be appended to this file by running the HP Serviceguard administrative command, cfscluster config. EXAMPLES
A cluster consisting of four nodes, named node0, node1, node2 and node3, operates without a cluster monitor, and has the following cvmtab file when UDP is used as the transport agent for messaging: # ClusterName clustername CVM1 # Daemon port numbers port vxconfigd 4500 port vxkmsgd 4501 # NodeID Nodename Localname node 0 node0 node0_p node 1 node1 node1_p node 2 node2 node2_p node 3 node3 node3_p # Timeout value timeout 200 If GAB is used as the transport agent for messaging, the cvmtab file only needs to contain the following information: # ClusterName clustername CVM1 # NodeID Nodename node 0 node0 node 1 node1 node 2 node2 node 3 node3 # Timeout value timeout 200 If node1 is the first node to join the cluster, it becomes the master node. The following command confirms that node1 is the master node: vxdctl -c mode To determine if reconfiguration of node3 is complete, examine the value returned from running the following command on node3: vxclustadm -v nodestate To confirm that node3 is a slave node, the following command is run on node3: vxdctl -c mode node1 remains as the master node for its lifetime in the cluster. To remove node1 from the cluster, the following command is run on node1: vxclustadm stopnode NOTES
vxclustadm does not ensure the consistency of cluster membership information. SEE ALSO
vxconfigd(1M), vxdctl(1M), vxintro(1M) Veritas Volume Manager Administrator's Guide Veritas Cluster File System Installation and Configuration Guide VxVM 5.0.31.1 24 Mar 2008 vxclustadm(1M)
All times are GMT -4. The time now is 08:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy