Load-balancing LAMP Dedicated Web Cluster Server Setup

November 24th, 2008

Load-balancing dedicated server Hosting solution and cheap pricing are two important concepts of a budget-corporate client. LAMP ( Linux, Apache, MySQL, and PHP/Perl/Python ) Load-balancing is a solution which can help moving database web server to secondary server. LAMP is not the same as standard cluster setup. Also, it does not include high-availability features such as fail-over. It shared load and distrbiutes to another server which acts as secondary server which is known to be more cost effective.

Applications and softwares required to setup LAMP clusters are packaged along with linux distributions. Following is an example where two servers run DNS which is the primary server and backup. This is ditributes between 3 web servers and 2 database servers.

The initial stage includes round-robin where DNS is a load-balancing solution which serves web requests for a hostname from different dedicated web servers. In this case, each web server has it’s own Public IP address.

Following is an example where the domain assignd the same hostname to each of three dedicated web servers but the IP addresses are completely different :

;
; Domain database for foo.com
;
domain.com. IN SOA ns1.domain.com. hostmaster.domain.com. (
2006032801 ; serial
10800 ; refresh
3600 ; retry
86400 ; expire
86400 ; default_ttl
)
;
; Name servers
;
domain.com. IN NS ns1.domain.com.
domain.com. IN NS ns2.domain.com.
;
; Web servers
;
www IN A 10.10.10.11
www IN A 10.10.10.12
www IN A 10.10.10.13

In DNS Server received requests from domain.com, one IP address will return for the first time, then a different IP address for the next request. In this case, Web server traffic is distributed among 3 web servers. However, due to DNS cache, resources may vary. This is just an solution to minimize load-balancing setup cost.

Web Server Configurations that is used in a cluster is the same as Apache Web Server Configuration with only one statement that content is the same with sycnhronization. Many use the option which is known as “rsync”.

We suggest you also create a new user account on each dedicated web server and it needs to have write permissions for Web content directory on each web server. Also, create SSH keys for the account and distribue the public keys to /home/syncer/.ssh directory on other 2 web servers. It also allows login without password to the user account and update data at each intervals.

The following rsync updates web content :

#!/bin/bash
rsync -r -a -v -e “ssh -l syncer” –delete /var/www/ webtwo:/var/www/
rsync -r -a -v -e “ssh -l syncer” –delete /var/www/ webthree:/var/www/

When a LAMP Cluster is setup, cookies needs to be checked as Apache stored cookies in /tmp directory. In case, a visitor views a session on Web Servers and if HTTP requests are managed by a different web server, the cookie won’t exist and it won’t function as required. Solution to this is shared cookie directory on Web Servers and should be done before setting up LAMP Clusters.

Another requirement of the setup is to send the data to the database master server and should be distributed between master and slave server.

Now, if we focus on Database servers, MySQL has a feature to maintain database on different servers. It is known as “log replay” which means a log is created on the master server which is read by a slave server and then applied to the database.

In this example, we will assign 2 database servers, one is Database Server 1 and Database Server 2.

In order to setup Master database server, you will need to create a replication account which is the user ID in MySQL which is utilized by slave servers which read the logs.

Following is an example :

GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO copyslave@”10.10.10.0/255.255.255.0″ IDENTIFIED BY ‘copypass’;

You can also edit MySQL configuration which is located in /etc/my.cnf and then add the following :

# Replication Master Server (default)
# binary logging is required for replication
log-bin ( binary log file - required for applications )

# required unique id
server-id = 1 ( Master Server )

You can view new binary log file in MySQL directory with $HOSTNAME-bin.001. Here, MySQL will create new log files. In order to setup Slave Server, edit /etc/my.cnf and add the following :

# required unique id
server-id = 2
#
# The replication master for this slave - required
# (Master Database Web Server IP)
master-host = 10.1.1.21
#
# Slave Username
# to the master - required
master-user = copy

# Slave Password
# the master - required
master-password = copypass

# Lost Connection Check
master-connect-retry = 15

# binary logs
log-bin

Restart MySQL, slave server will connect to the master server and begin the replication process. At initial stage, it will create master.info file with all settings in the default directory which is /var/lib/mysql

In order to check if the replication is working, log in to the MySQL monitor and run show master status and then show slave status. There you need to check Slave_IO_Running and Slave_MySQL_Running. If both are Yes, then the replication process is working.

In case, the database web server loosed network connectivity, you can stop MySQL on the master as well as slave server, then dump master database and reload the database on the slave server and then start MySQL on master and slave server.

If there are any issues with the master database server, the slave database server can be configured as master database server by simply updating the IP address and MySQL configuration file. It is possible to easily setup LAMP cluster on dedicated web server hosting

Dedicated Server Hosting and Types

November 23rd, 2008

Dedicated Server Hosting

There are many types of dedicated server hosting packages and as per client’s requirements, each dedicated server should be setup accordingly.

1) Basic Dedicated Server Hosting

If a client has outgrown from a shared / reseller / vps hosting account, he eventually upgrades to a dedicated server with his basic requirements. Client’s do not require much RAM, Hard Disk and basic Operating System installed on the dedicated server hosting package. Their main aim is to improve the website response time.

2) High-end Dedicated Server Hosting

This is probably the next stage of a basic dedicated server hosting package where a client is looking for more performance of the server as he has understood that his requirements are on a rise now which is then followed by a Quad Core Configuration. However, different client’s have different requirements and setup of the dedicated servers as per their selection is important. Infact, at times there are many pre-requisites that a web server hosting company should take care of.

3) Bandwidth Dedicated Server Hosting

If a client needs to run live video streaming website such as you-tube. He will not only need a high-end server configuration, but also good amount bandwidth which ranges from basic standard metered bandwidth per month to unmetered bandwidth of 100Mbps or 1Gbps Unmetered Bandwidth. The requirement of Data Transfer is high on these kind of websites and it should be able to download or upload on the server as fast as possible.

4) Application Dedicated Server Hosting

Dedicated Server Hosting packages that are utilized to host Applications are known as Application Dedicated Web Servers. Client’s host all kinds of legal applications such as live chat softwares, Flash tutorials, Media file installations and many more.

5) Database Dedicated Server Hosting

Client’s who run Databases such as MySQL or MS SQL on a dedicated server are known as Database Dedicated Server Hosting. These require more of storage space and higher-end server configurations in order to completely manage dedicated servers.

6) Server Mirroring Dedicated Server Hosting

Many client’s require their data mirrored to another server. This is because they do not like to loose any data at any point of time. Servers are synchronized in order to transfer data from one server to the another. RAID Configurations are setup on the same theme as dedicated Server mirroring. The only main difference is that RAID mirrors / strips on Hard Disks and Server Mirroring is Server concept.

Load balancing dedicated server features

November 22nd, 2008

Load balancing dedicated servers offer many features when compared to a dedicated server. Some of them are as follows :

- Asymmetric load : load can be shared with the backend dedicated server servers. This way, it improves performance on the front-end servers.

- Immediate Activation : In case of failure, the backend server can immediately brought online.

- SSL Load Management : SSL connections can be managed through load balancing hardware.

- Protection against DDoS : SYN cookies and delayed binds. They can work offline and protects from DDoS counter attacks.

- Compression of HTTP : gzip on web browser to reduce load on the data transfer.

- TCP Offloading / buffer : Every HTTP requesy has different TCP Connection. It can serve every client that reaches the sever and takes care of every task.

- Caching of HTTP : It can store the data that are static, it reduces the load on the dedicated web server and does not need to retrieve the data everytime.

- Filtering : Traffic management and filtering.

- Security on HTTP : It can hide HTTP error page, remove HTTP response and cookie encryptions in order to maintain high security on servers.

- Priority Que : Differentiating between decent traffic and bad traffic.

- Request Switch : Requests can be sent to different load balancing servers as per URL that is requested.

- Authentication from client : Authentication for clients to access the website.

- Firewall : Un-secured connection to the load balancing servers are prevented and not allowed. This ensures security on the dedicated server.


Load-balancing dedicated servers
with affordable prices are the best solutions to remain online always!

What are Load balancing Dedicated Servers ?

November 21st, 2008

High-availability, redundancy, performance have become an important factor of web server hosting. Access to Internal as well as external client IP to keep 100% uptime. Any downtime occoured can bring-in loss to the company. It is also known that load-balancing dedicated server hosting configuration are highly priced. BODHost provide cheap and Affordable load balancing dedicated server configurations that suit every pocket. Even small Intel P4 configurations can be setup as load-balancers reducing a good amount of cost. However, the main concept remains that every requirement is different from one another.

BODHost understands every requirements of a client and provides them with reliable load balancing dedicated server solutions. load balancing servers improves performance on a dedicated server by managing and distributing load among servers. for example, application server and database server. It means application will run from the application server and the database will be retreived from the database server. This reduces the load on one server and distributes it between two dedicated server configurations.

Bandwidth and traffic management on load balancers are also taken care of. Fail-over dedicated server hosting setup and management are all part of BODHost dedicated server management technique program. We also run dedicated server monitoring technqiues that runs through the servers to check if the servers are functioning appropriately.

At BODHost, we understand that how important your business is and make sure everything is running smooth. If you have any questions in respect with load balancing dedicated server setup configurations, please feel free to email our sales department or dedicated server department through http://support.bodhost.com/

Exchange Dedicated Servers FAQ

November 20th, 2008

1. How does Exchange dedicated server hosting Work ?
Ans. Exchange Mail Servers are nothing but standard Mail Server with a lot more features which is integrated with Active directory and an aim to meet requirements of a Exchange Server client.

2. What is basic difference between Exchange Server 2003 and Exchange Server 2007 ?
Ans. Basically, if you start, MS Exchange Server2003 is a 32-bit application whereas MS Exchange 2007 is 64-bit application. Also, there were no role infrastructure in MS Exchange 2003 where as this is not the case with MS Exchange Server 2007. It has Role Infrastructure which are mailbox, hub transport, client access, edge transport, unified server. It also support CCR which stands for Continuous Cluster Replication which is required for dedicated server clusters.

3. Is it possible to import addresses and messages from my old mailer ?
Ans. Yes, it is possible to import addresses and messages. However, you will need to download all mails to your local machine and then configure Exchange Server account to import it to Exchange Server.

4. What are the minimum hardware requirements for usage of Exchange Dedicated Server :

For Exchange Server 2003, you will need the following minimum hardware specifications :

- 32 bit Hardware
- 4GB Minimum as AS will be installed on the same server.

For Exchange Server 2007, you will need the following minimum hardware specifications :

- 64 bit Hardware
- 5GB Minimum as AD will also be installed on same server

5. How to backup and restore for Exchange Dedicated Servers ?
Ans. In order to complete the process, you will need System sate backup for AD restoration. For Exchange Server, you need to take backup of all the files, MDB files, EDB files, STM files and LOG files. This is the same case with Exchange Server restoration.

6. What does fully managed exchange dedicated server include ?
Ans. Basically, it refers to all exchange server configuration along with backup and patch installation.

7. How many mailboxes can i create with Exchange Server ?
Ans. You will be able to easily create 3000 Mailboxes with approx. 8MB each per Mailbox. However, it is also dependant upon the server configuration of the dedicated server hardware. Following is an example :

2GB - Operating System
1GB - Application Installation
1GB - Exchange Server
Mailboxes with 8MB for email user

2 + 1 + 1 + Mailbox with 8MB

However, Microsoft recommends 5MB per Mailbox

8. What are the features of Exchange Dedicated Server Hosting ?

- Mobile Access
- Public foler ( Only available in MS Exchange Server 2003 )
- Share Calendar
- Share Mailbox
- Mail Group
- Mailbox access as per permission
- Direct “Out of office” Message setting ( Outlook email client )
- Meeting Request ( Outlook and Exchange combination )

9. What is Outlook Web Access or OWA in Exchange Server ?
Ans. It is Outlook Web for accessing email through internet.

10. Is Anti-virus and Spam filering on Exchange Dedicated Server ?
Ans. Spam filter is available in 2003sp1 and 2007. It is based on IP report.

11. How to Access my emails via my mobile device ( e.g. Blackberry ) ?
Ans. This setting needs to be enabled on Exchange Server and mobile device needs 5.0 V and above installed on it.

12. Is it possible that i can access my emails from anywhere ?
Ans. Yes, if you are Mobile is compatible and you have access to Internet.

13. What kind of storage system does BODHost offer ?
Ans. We offer basic 3ware RAID 1 Configuration on our Exchange dedicated servers.

14. Can i integrate shared calendars, contact and public folders ?
Ans. Yes, this is one of the unique features of Exchange dedicated servers.

15. Are there any size limits on the emails that are configured on Exchange Server ?
Ans. We don’t impose restrictions on the limit. However, Microsoft recommends 2GB Per Mailbox.

16. Is it possible to migrate Exchange Server from my existing provider to you without any service interruption ?
Ans. We make sure there are no interruption of services during migration from another dedicated server to us. Once the process is completed by our windows technical department, all we need to do is set MS record to mail server.

17. Is it possible to upgrade from MS Exchange Server 2003 to MS Exchange Server 2007 ?
Ans. Yes, upto a certain level. MS Exchange Server 2003 only run 32-bit hardware whereas MS Exchange Server 2007 run on 64-bit Hardware. However, Transition is definitely possible.

If you are looking for a Exchange Dedicated Server Configuration Quotes, please email us at sales@bodhost.com

Types of Load balancing Dedicated Servers

November 19th, 2008


Load balancing dedicated server Hosting
are one of the most advanced web server solutions used these days as the requirements of client’s are at inclination and in order to manage the requirements, it is important to setup a specification where every activity on the server is distributed accordingly and load has been managed. There are many of load-balancing. Hardware Setup of load-balancing is much costlier when compared to a software load-balancing setup.

Following are few of the ways of setup :

Round Robin DNS Load Balancing dedicated server :

It is basically DNS binded server that load-balances multiple dedicated web servers. This is normally known to be used for group of clusters. Some of the main advantages is that is very simple and can easily be implemented.

The only disadvantage is that the DNS server does not know if any server goes down. It knows only the difference of the IP and does not know by server port. The IP can be cached by others and request will not be forwarded to the other server.

Hardware Load-balancing dedicated server :

Hardware load-balancers route TCP/IP packet to different servers in a cluster. They are highly-reliable but with a cost. It used network gatewat to route traffic. The only disadvantage is that it is cheaper to software versions.

Software Load-balancing dedicated server :

These days, software load balancing dedicated servers are normally used which are integrated with web servers and application servers. They are much cheaper when compared to a hardware load-balancer and can easily be configured as per requirements. Unlike, Round-Robin, it can easily route based on different parameters. It requires additional hardware for complete setup of load-balancer.

Introduction to Exchange Dedicated Servers

November 18th, 2008

Exchange dedicated servers are basically servers which enables send and receive of emails. It basically enables sharing of emails without connecting online. It can be send from one server to another without being connected online. It integrated with Microsoft outlook, Microsoft Outlook Express and email applications that are used for business on a dedicated server. It provides to confidential information, improving efficiency and simplifies communication of large organizations.

This also enhances security and reduces the risk factor and can be configured on mobile devices. Exchange Server can store emails on a dedicated server which is not the case with POP3 setup. Employees of organizations may send private information through this applications.

With exchange dedicated server Hosting configuration, emails and information can be stored on servers which can only be accessed through client devices. Exchange dedicated servers run on MS windows servers and operating system. Microsoft Outlook Web access also provides browser access systems. It supports devices such as blackberry, Treo, Motorola, QPocket and oher smartphones.