June 2012
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

June 2012
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Clustering Tomcat Server

Clustering Tomcat Server A cluster of two Tomcat is a more Tomcats that are hosted in the same Java application. The main function of cluster Tomcat is to perform replication of open sessions in each cluster of Tomcat, so Tomcat each contain their sessions and their attributes, as well as the attributes of the other […]

Shorewall Firewall

Installing and configuring Shorewall in CentOS

Netfilter is a packet filtering in Linux 2.4.x and 2.6.x kernels Enables packet filtering (network address and port), NAT and other packages. Redesigned and highly improved from the previous kernel 2.2.x, ipchains and ipfwadm kernel 2.0.x.

Netfilter is a set of structures within the kernel that allows modules to […]

Setting up Clustering on Apache/Jboss/Tomcat using Jakarta mod_jk

Clustering Jboss for two reasons load balancing and failover.

Fail-over

Fail-over is probably the most important issue for web applications. If the front end load balancer detects that one of the nodes has gone down it will redirect all the traffic to the second instance and your clients, apart from any on the failed […]

Three Tier Architecture Diagram

Three Tier Architecture Diagram

Application Solution is designed to be compliant with web standards, which recommends minimum three tier servers and three network zones for enterprise standard secure applications.

The first tier, presentation layer, provides an interface to the user for user interaction, and secure access (https). This layer is implemented by http servers. The […]

Apache Server Load Balancing for Multiple Virtual Hosts Tomcat

Apache Server Load Balancing for Multiple Virtual Hosts Tomcat

 

apache vi /etc/http/conf/httpd.conf

NameVirtualHost *:443 NameVirtualHost *:80

<VirtualHost *:80> ServerName server1.rmohan.com Redirect permanent / https://server1.rmohan.com/ </VirtualHost>

<VirtualHost *:443> ServerName server1.rmohan.com SSLProxyEngine On KeepAlive On

<Proxy balancer://Cluster> BalancerMember ajp://localhost:18009 disablereuse=On route=jvm1 BalancerMember ajp://localhost:28009 disablereuse=On route=jvm2 </Proxy>

ProxyPass / balancer://Cluster/ stickysession=JSESSIONID </VirtualHost>

<VirtualHost *:80> ServerName server2.rmohan.comm Redirect […]

Apache mod_proxy as Load Balancer

Apache mod_proxy as Load Balancer

This article presents an example of load balancing using Apache2.

For example take the host 192.168.1.100 as a balancer, this host will install the apache front end acting for all requests and will balance the load on other hosts.

The load is redirected to the host […]

Performance Benchmarks a Webserver Apache concurrency

Performance Benchmarks a Webserver

Apache Benchmark Procedures

Tweak include the KeepAlive, KeepAliveTimeout, and MaxKeepAliveRequests settings. Recommended settings, which can all be set in the httpd.conf file, would be:

Code: ServerLimit 128 MaxClients 128 KeepAlive On KeepAliveTimeout 2 MaxKeepAliveRequests 100

Testing a stock Apache configuration (MaxClients is 256, ServerLimit is 256, KeepAliveTimeout is 15) using […]

Tomcat

Tomcat

The reference is taken from Apache Tomcat 7 Essentials By: Tanuj Khare

Tomcat Apache Tomcat is an open source Java-based web and servlet container, which is used to host Java-based applications. It was first developed for Jakarta Tomcat. Due to an increase in demand, it was later hosted as a separate project called […]

INSTALL SSL Wildcard Certificate MULTIPLE SUBDOMAINS

INSTALL SSL Wildcard Certificate MULTIPLE SUBDOMAINS

Some sub-rmohans share the master rmohan’s SSL Wildcard Certificate,

like as a.rmohan.com and b.rmohan.com share a SSL Wildcard Certificate of *.rmohan.com.

1. put the certificate to the propel place 2. configure apache a. enable name base virtual host ” NameVirtualHost *:443 ” b. make sure listen 443 port […]

LVM

LVM

First LVM Setup

1) fdisk /dev/sdb

WARNING: DOS-compatible mode is deprecated. It’s strongly recommended to switch off the mode (command ‘c’) and change display units to sectors (command ‘u’).

Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-13054, default 1): Using default […]