Sunday, October 26, 2008

Daily Shopping

You can get anything from US and believe me its easy. If you walk into some super markets like Wal-Mart or Meyers, you can get anything, from ball to bed. House hold articles are not very expensive but you can get really expensive ones too. A dinner set (4 dinner plates, 4 small plates, 4 cups and few more dishes) will cost around 60USD. An air bed will cost around 50USD while a spring bed will cost around 300USD. A bottle of milk (3 litres) will be around 2USD.

Indian Shops

Almost every city, you will find Indian shops. If you go to Chicago or Boston, you might find it a lot and if you go to some smaller cities, you might have to travel to the nearest city to find one. But, you will get everything over there from Cereals, Masala (Everest masala, Grandma masala and many more…), DVD’s for rent, Indian rice varieties, spices. So point is, you really don’t have to carry anything from India thinking that you won’t get it there. But yes, it might be a little more expensive than the normal super markets. Almost all Indian spices can be bought from super markets like Wal-Mart, Fred-Meyers and it will be cheaper compared to an Indian shop.

Driving in US

Driving and moving around is US is different from that of our contry. You cannot walk from one place to another (of course major metro’s and cities, walking in the busy areas are common. If you walk around in Newyork city, it reminds you of Bombay ;-) ). For the small cities, the hotels will be present mostly near a free way exit. You might have to travel to the next exit to get food or sometimes you will get at the same exit. So a car is required for all travel purpose. If you don’t have a license handy, you can always rely on cabs which can be booked over the phone. They normally takes 20 -40 mins to show up after your booking.

Rental Cars

If you want to book a rental car, you need a credit card. Some of the car rentals are www.hertz.com; www.enterprisecar.com; www.nationalcar.com;. The average rent will be around 20-30 USD per day for a small car like Toyota Corolla which does not include the Insurance. Car Insurance needs to be bought separately and I strongly advise you to buy it for first few days at least. I will write a separate blog on various insurances that you can buy for car rental. The rental cars will have automatic gear shift. So you don’t have to worry about the gear shifts. The next major difference. The cars are all left hand drive. If you have never driven in US, I would strongly advise you NOT to drive in US. You have to follow rules and rules are much different in US, major being there are rules for freeways.

Freeways

Freeways are like highways in India. I should be crazy to do such a comparison. Well, the point that I want to make is that the free ways normally connect cities, sometimes states and sometimes multiple states. I-75 goes all the way from Michigan to Florida, roughly 700 miles. Now let me tell the major rules. You are not supposed to stop your car on a freeway, unless it’s an emergency. In case of emergency, you should pull your car to the right side (if present, some places it will be left side) shoulder and never stop on the road. If you want to stop the car for taking rest, you should take the car through the nearest exit and stop at a safe place like Gas Station, Eat outs etc. Yes, there will nothing on the freeways; you should take the exit roads to fill gas, to eat out, to take rest and to stop the vehicle for driver changing and for anything that involves stopping the car. Every exit will have a number like Exit 169. Before the exit, all the facilities available at the exit will be posted on the freeways. Normally, for every exit, there will be an adjacent entry where you can get back to the freeway. Some places it may not be the case and it will be mentioned at the exit. So the general flow is, take an exit, do whatever you want and then join back the freeway at the entry.

There are speed limits posted on the road and it should be followed. You will be ticketed by the cops if you exceed the speed limit and sometimes if you don’t maintain the minimum speed limit. There are some rules specific to states and you should read the rules before travelling in that state. You will be ticketed by the cops if you don’t follow rules, whether you are aware or not. The freeways will have multiple lanes and shifting between the lanes should be done carefully. So please do read the rules, it’s important and it’s very much different from driving in our country.

Landing Stay & House Lease

It’s pretty easy to get a stay arranged in US. All the reservation to the Hotel can be done through online reservation systems. You will have to use your credit card to do the reservation. Few of the hotels are www.marriot.com; www.choicehotels.com; Please do the reservation in advance. The reservation can be canceled in most of the places till 24 hours before the start date of the stay. However check the policies before doing the reservation. Having said that, you should probably try to get a stay arranged at your friends place because that makes it more comfortable stay J. Another point to remember is that most of the hotels will have only breakfast (some of them give it free). This information will be available in the website itself and it changes from hotel to hotel. For other times in the day, you will have to go to near by places for food.

House for Rent

Houses are available for lease. The duration of lease will be anywhere up from 6 months. This means that you sign a contract with the leasing company for a stipulated period of stay. The rent will be fixed while signing the contract for the contract period. For smaller cities, the rent will be 700 USD for single bed room apartments and for bigger cities it can go higher. If you know that you are going to stay there for a longer duration , you can think of signing lease for longer duration to lock down the rent. The leasing company increases the rent every time you renew the lease. You can break the lease by paying a lease breakage fee. This should be mention in the contract. It can be amount equaling to a month or 2 month rent. Mostly the houses or apartments will be owned by a leasing company. You can search for lease availability in your area in www.rent.com. Whenever you get into lease agreements, look out for discounts, some places have move in specials like first month rent free, few amount off from first month rental etc. You can expect partially furnished apartments in most cases which might include a fridge, dishwasher, washing machine and a dryer, microwave, heater and air conditioner. But, this varies from apartment to apartment. Some places will have laundry unit as part of your apartment while some will have it as a common place. If you are going to cold areas like Michigan, check if you have a good heater in the unit. The temperature can go as low as -20F outside and you need good heaters to maintain the room temperature. Some apartments give heating power as free and it’s really worth if you can get this offer. Also check with your colleagues if they can help, the leasing contracts are flexible and it can be changed, but once signed, it cannot be changed. After completing a fixed lease term, you can either extend the lease for another lease term or go for a month to month contract.

Sunday, October 19, 2008

Traveling to United States

Traveling to US for the first time will bring in too many questions to mind, what to carry, what I can get there etc, where should I go etc ….This blog represents my view only and I would advice your discretion while following the blog.

Saturday, October 11, 2008

Webserver Integration with Websphere

Why should there be a webserver when the Application Server has an inbuilt Web-container? WAS (Websphere Application Server) has a web container that can respond to http requests. It can serve the same purpose of a webserver. It can deliver static content; it can deliver the servlets and JSPs.

Why do we need a webserver in between the client and the application server? The benefits are listed below and they are listed not as per the importance. The importance can vary based on the potential uses.

1. Load Balancing is easier with Webservers in place. All the requests from the client can be redirected to various Webservers available and the webserver can redirect it to the necessary application servers depending on the load on the application servers.
2. Static content like html, images can be served by the webserver itself. This will increase the performance of the application as a round trip to the application server is not required to display the static content.
3. Application server security is preserved as all direct access to the application servers can be blocked. If the list of Webservers and their ports are known which will request data from the application server, only those servers can be enabled to redirect the request to application server. For e.g.: If the virtual host aliases mention that it will accept request from server1 and port 8090, only the request coming from server1 will be accepted by the application server. Other requests will not be rejected by the application server.
4. It’s easy to configure the authentication mechanisms in the webserver and safer to do so. If the user is invalid, the application server, where the business components reside is not approached and hence more secure.

In the remaining document, the steps required to configure IBM HTTP Server to work with WAS is detailed. The steps that need to be followed are outlined below.

1. Install the Websphere Application server (Base/Express/ND).
2. Install IBM HTTP Server. Only few Webservers are supported by WAS in webserver-application server communication. For e.g. Apache Webserver, IBM HTTP Server, Sun One Webserver. Refer to IBM documentation to do this.
3. Download and install the plug-in for Websphere-Webserver communication. The detailed steps are described below, assuming that the WAS and the Webserver are installed on the same machine. For remote setup, the scripts need to be copied over to the application server and it should be executed separately.
1. Run the install.exe in the machine where the Webserver is installed.
2. Select the license terms and then select what type of Webserver will be used. Only the webserver type selected will be configured but the plug-in for all supported Webservers will be installed.
3. Select if the Webserver follows a Local or Remote Topology. If the Webserver and the Application server exist on different machine, select Remote otherwise select Local.
4. Local Setup
5. Select the path where the plug-in should be installed. It will be typically “C:\Program Files\IBM\HTTPServer\Plugins”. You can select any other directory but preferably within the Webserver installation path.
6. Select the Application Server Root. e.g: “D:\Program Files\IBM\WebSphere\AppServer”
7. Select the configuration file for the WebServer. For IBM HTTP Server, it will be “C:\Program Files\IBM\HTTPServer\conf\httpd.conf”. Select the Webserver port. This would have been set by you during the Webserver installation. (If you don’t remember, read the conf file of the Webserver file and search for the word “Listen”. The port number will be placed adjacent to it.)
8. Select a Webserver profile name; it just needs to be unique. This name will be shown in the Administrative console of WAS.
9. The program will display the plug-in file name for the Webserver. This ends the selection process and the next button will install the plugins.
10. The plug-in will be installed for the default profile of the application server.
11. A script will be created in the “?webserver path?/plugins/bin” folder with the name “configure?Webserver Profile name selected in Step h?.bat
12. Copy the bat file to the “?was_install_root?/bin” folder and preserve it. This script can be used to create the webserver profile in the application server if required.
13. In the Administrative Console, you can find a Webserver profile created by the name given in Step h.
14. Remote Setup
15. For remote setup, execute the bat file as mentioned in Step l.
16. Restart the application server and the webserver
17. The installation will be complete.

For testing the installation process, try accessing the below URL. The request goes to the webserver and since the servlets is not present in the Webserver, the request will be redirected to the application server. (If it does not work, ensure that webserver name and webserver port is added in the host alias for the webhost in the application server. Ensure that the plug-in file is generated in the application server and propagated to the webserver too)

http://?webserver name?:?webserverport?/servlets/snoop

Travelling to Wayand..

Wayanad can be reached from different cities but all of them are by road.

Bangalore à Wayanad (6 hours)

Coimbatore (via Gudallur) à Wayanad (6 hours)

Calicut à Wayanad (3 hours)

Wayanad is best reached by taking a road trip from Calicut, which is 70KM from Wayanad. Calicut has an International Airport and Railway Station which gives connectivity to major metros like Chennai, Mumbai, Delhi etc .. Since Wayanad is in Kerala, there are no additional tourist taxes to be paid for the tourist vehicles, which is pretty high for other state tourist vehicles.

There is no particular place called Wayanad, it’s the name of the district and hence it’s virtual in nature. Wayanad has 3 main towns, Kalpetta (district capital), Sultan Battery, and Manathavady. The place is known for its waterfalls and the climate. The temperature is around 20-25C for most of the year except for March till May.

The places of Interest

  1. Edakkal caves – It’s a trekking route with Edakkal cave at the culmination. There is a stone hanging in between 2 rocks. The entry to the cave is restricted till 4:30PM in the evening. 25Kms from Kalpetta.
  2. Menumutty Waterfalls – The water fall is at the end of a forest trekking route. The trek route is very slippery during rain and considered dangerous. You can take bath at this waterfall when the water level is low. 20Kms from Kalpetta.
  3. Soochipara Waterfalls – You can take bath at this waterfall. You ought to be careful during rainy season as the water level increases very abruptly. The road to the water fall is more of curves and should be careful while driving. 20Kms from Kalpetta.
  4. Banasura Dam – You can see the dam and enjoy boating at this place. It’s good for photo shoot and is a ideal to visit during sunset. 25Kms from Kalpetta.
  5. Muthanga Forest Reserve- If you are interested in watching the wild animals on the move, Muthanga wild life sanctuary is a good place to visit. You can travel inside a Jeep (provided by the forest dept) through the designated paths. Evening times are good for watching animals as they come to drink water.
  6. Pookode Lake – This Lake is on the way from Kalpetta to Calicut. You can enjoy boat ride at this lake.
  7. Bandipur National Reserve- Short travel from Wayanad. It’s a national park which is famous for the wild elephants. There is accommodation available inside the forest (you need to do advance reservation for this).
  8. Ooty and Mysore are the tourist spots to which you can drive as part of your trip. It’s almost 100Kms away from Wayanad.

General Tips

  1. Ideal place to stay is Kalpetta or Meppady. Most of the tourist spots are near to these towns.
  2. It’s a good idea to try for resorts if you are in a family or a manageable group (approx 10). Resorts charge Rs.1500 to Rs 3000 per night stay for a family.
  3. You can also explore home stays. This is a good idea if you are visiting for a calm stay. I’m not really sure about the rates.
  4. Tourist homes are good options too, if you are interested only in sight seeing. It’s cheap and affordable. Typical rates are Rs. 250 per person/night (4 sharing room)
  5. Try to arrange food at the resort itself in case you are staying in the resort as outside food is difficult to find.
  6. Nature lovers have an option of taking a dormitory in Muthanga wild life sanctuary. You are not allowed to have camp fires or loud noises. Occupancy is Rs. 80 per person per night. It has all the necessary amenities. You will not get hot water or towels or soap or any thing for that matter. You are anyways allowed to carry it with you.
  7. The nearest city is Calicut. If you are traveling by train, you should allot at least 5 hours travel time to Calicut (by tourist bus, 3 hours by car).

Hope this article about Wayanad was helpful. You can leave your comments here.

Thursday, October 2, 2008

RAID

Data is the most important part of any organization. So the organization takes care in preserving the data by all means. The daily data is backed up. The data is also backed up into tapes and the tapes are stored in a distant location. In case of any data center disaster, the data is recovered from the alternate location. These solutions works in recovering the data till the last backup was performed. Many verticals like banks would not be happy with this approach.

Redundant Array of Independent Disks is a way to preserve the data to the latest point. It is sometimes referred to as Redundant Array of Inexpensive Disks. RAID deals with the configuration of the data storage disks. The storage disks will be in smaller blocks and the data will be written into these smaller disks, controlled by the RAID controller. For e.g. if a storage of 500GB is required, it can be obtained by stripping (combining) 7 units of 72GB disks. The controller will have the responsibility of allocating the data into these 72GB disks. For the end user, in this case an OS, it appears like a single 500GB disk. The advantage is that the writing to the disks will happen in parallel and in this case will achieve 7 times faster write speed than a single 500GB disk.

RAID0 – RAID 0 means stripping to get a bigger disk. There is no backup or crash recovery mechanism present in this type of setup. Many smaller disks will be stripped to make a bigger disk, controlled by a controller. This set up cannot sustain a disk failure.

RAID1 – RAID 1 means mirroring. The disk is mirrored. The redundancy of the data is present but in case of a crash of any of the disk, the data can be recovered from the mirrored disk. With higher redundancy and poor performance, data safety from crash is achieved. Failover is also achieved in this setup.

RAID 3 – RAID 3 is a case where the data is stored in one location and its parity is stored in a different disk. This works with 3 disks where the data will be written to disk1 and disk2 and the odd/even parity will be written to the parity disk. In case the disk1 fails, using the parity information and the data on disk2, the data on disk1 can be recovered. In this setup, the data redundancy is 33%. The issue in such a setup was that the parity disk had a huge load to handle.

RAID5 – Similar to RAID3 but in this case, the parity disk is rotated between the data disks. In RAID3, we allocated the 3rd disk as the parity disk. In this setup, the parity disk is rotated between all the disks. For the first time, the 3rd disk will have the parity information and 1st and 2nd will have the data. For the next data written, the 2nd and 3rd will have the data and the parity will be stored in the 1st disk. This continues. A single disk failure can be sustained with this set up without having 50% redundancy like RAID1 but still having 33% redundancy like RAID3.

RAID6 – RAID6 works on dual parity. In this setup the parity information is stored in two disks and the data is also stored in 2 disks. The parity disks are rotated between the available disks like RAID5. RAID6 set up can sustain 2 disk failures. In case 2 disks fail at the same time, the data in those disks can be recovered using the parity information stored in the other 2 disks.

RAID0+1 – RAID 0+1 is merging RAID 0 and RAID 1 in the same order to get the advantages. Firstly all of the available disks are set up as RAID 0 i.e. all the disks are stripped together to achieve the required space. Another exact configuration is done with another set of disks. These to configurations are then configured as RAID1 i.e. mirrored. In other words, it’s setting up 2 RAID0 set up and then performing RAID1 setup on it i.e. mirroring. This set up can sustain the disk failure of any disks as long as the mirror copy is intact. However there is a 50% redundancy of space.

RAID1+0 – RAID1 + o is merging RAID1 and RAID0. The individual disks available are first mirrored. Then these mirrored disks are then stripped together to achieve the required space. This setup can sustain any disk failure (as long as the mirror doesn’t fail) but has 50% redundancy.

Based on the space redundancy, cost implications can be figured out. Based on the possibility of recovery, the availability can be measured. Similarly performance can be measured based on how many places the data needs to be written. RAID1 is better performing as data is written to a single disk and no mirror copy is written but of course with lesser availability. Similar analysis can be done for other RAID levels too.