Friday, 23 August 2013

How to use Apache as Software Load Balancer [ mod_jk implementation of Apache ]

Using Apache as Software Load Balancer


Here, I will be explaining on how 'mod_jk + Apache' can be used together to work as a software Load Balancer.

Note: I am assuming that whoever is reading this has basic knowledge of Apache and its use and implementation.

There are mainly three files which you can put inside conf.d folder lying inside Apache main configuration (/etc/httpd/conf.d).
  1. mod_jk.conf
  2. ssl.conf [For https content]
  3. workers.properties
I am excluding "httpd.conf " file here. You can leave it with original settings . I am also excluding "uriworkermap.properties" file because instead of defining the context path or the name of your war file here, you can simply run you application as ROOT.war. Meaning, rename your "xyz.war" to "ROOT.war" and run your tomcat server. After renaming your application as ROOT.war ,you don't have to write the context path while accessing your application. And you have excluded one file ("uriworkermap.properties") while setting up Apache as Software Load Balancer. Isn't this a good deal :).

E.g:

How to access your application if the name of your war file is:

xyz.war --> http://localhost:8080/xyz
ROOT.war --> http://localhost:8080  [No need to explicitly mention the context path ; port 8080 is the port on which your tomcat server is running]

Anyhow , I will write down the settings of "uriworkermap.properties" too, incase anybody still needs that.

# worker configuration file
# Mount the Servlet context to the ajp13 worker
/xyz/=loadbalancer
/xyz/*=loadbalancer

Below are the content of the 3 files mentioned above which should be used for setting up Apache to make it work as Software Load Balancer.

1) mod_jk.conf

# Load mod_jk module
LoadModule jk_module modules/mod_jk.so

#It's better to define Listen port and comment out that in httpd.conf file
Listen 80  
<VirtualHost *:80>
#ServerName 10.34.24.54
DocumentRoot /var/www/html

RewriteEngine On
RewriteLogLevel 1
RewriteLog logs/rewrite.log
  
JkMount /jkmanager/* jkstatus
JkMount /* loadbalancer
JkUnMount /siteimages/* loadbalancer # Static images served from here
JkUnMount /robots.txt loadbalancer
</VirtualHost>

# Where to find workers.properties
JkWorkersFile conf.d/workers.properties
# Where to put jk logs
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the log format
JkLogStampFormat  "[%a %b %d %H: %M: %S %Y]"
# JkOptions indicates to send SSK KEY SIZE
JkOptions +ForwardKeySize -ForwardDirectories
# JkRequestLogFormat
JkRequestLogFormat "%w %V %T"
# Mount your applications
#JkMount /* loadbalancer
# You can use external file for mount points.
# It will be checked for updates each 60 seconds.
# The format of the file is: /url=worker
# /examples/*=loadbalancer
#JkMountFile conf.d/uriworkermap.properties
# Add shared memory.
# This directive is present with 1.2.10 and
# later versions of mod_jk, and is needed for
# for load balancing to work properly
JkShmFile logs/jk.shm
# Add jkstatus for managing runtime data

#Add the jkstatus mount point

# Add jkstatus for managing runtime data
#<Location /jkstatus/>
#    JkMount status
#    JkUnMount status
#    Order deny,allow
#    Allow from all
#</Location>

# Add the jkstatus mount point
#JkMount /jkmanager/* jkstatus
#Enable the JK manager access from localhost only
<Location /jkmanager/>
  JkMount jkstatus
  Order deny,allow
  Allow from all
</Location>

<IfModule mod_expires.c>
        <FilesMatch "\.(ico|pdf|flv|jpe?g|png|gif|js|css)$">
                ExpiresActive On
                ExpiresDefault "access plus 2 year"
        </FilesMatch>
</IfModule>

#SetEnvIf Request_URI "^/check.txt$" dontlog
SetEnvIf Request_URI "(\.gif$|\.jpg$|\.JPG$|\.Jpg$|\.png$|\.js$|\.css$|\.woff$|\.ttf$|\.eot$|\.ico$|server-status$|jkmanager)" dontlog

LogFormat "@%{X-Forwarded-For}i@ %h %l %u %t %T \"%r\" %>s %b %T \"%{Referer}i\" \"%{User-Agent}i\" \"%{JSESSIONID}C\" \"%{HS_ID}C\" " custom

CustomLog "|/usr/local/sbin/cronolog  -S /var/log/httpd/access.log  --period='1 days' /var/log/httpd/access.%Y%m%d.log" custom   env=!dontlog




2) ssl.conf


Not going to explain this in detail. Just take care of your certificates path. Get a self signed certificate if you are setting this up in dev/preprod environment.

And don't forget to add this line in this file too.
JkMount /* loadbalancer


3 ) workers.properties


# Define list of workers that will be used for mapping requests

worker.list=loadbalancer,jkstatus

# Define the first member worker
worker.jvmnode1.port=8010                     
#8010 is the ajp port and not http port
worker.jvmnode1.host=10.34.24.54
worker.jvmnode1.type=ajp13
worker.jvmnode1.lbfactor=1            
#LBFactor is very crucial parameter. It decides load distribution. In this scenario it's 50:50


# Define the second member worker
worker.jvmnode2.port=8010              
worker.jvmnode2.host=10.34.24.55
worker.jvmnode2.type=ajp13
worker.jvmnode2.lbfactor=1


worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=jvmnode1, jvmnode2

worker.loadbalancer.sticky_session=1
worker.jkstatus.type=status


Software Vs Hardware Load Balancer ?


Load balancing your application is crucial piece of your whole architecture. Load balancer plays an important role to maintain application & network performance; it helps in dynamic load balancing which is very important for ensuring that our requests and resources are evenly distributed across available servers and in an optimal manner.

The basic question which haunts us frequently is ...........How to decide that we should use hardware load balancer or software load balancer and on what criteria the decision should be taken?

This question in itself is very complicated and the answer would differ from person to person and upon requirement. There is no end to any technical argument if you don't have any data to validate about what you are suggesting / interpreting ;). So, whatever I will be proposing in this blog is my personal view and I leave it up to you to agree/disagree.

We should be cognizant about our exact requirement (never do over engineering) and henceforth use your technical skills and experience in appropriate direction to get the utmost out of it. If you are a novice to Load balancer and its use/implementation then hopefully this would be a good place to kick start. You can drop me a mail if you have any doubts regarding below explanation, will try my best to clarify your doubts.

Now coming back to original question………….How to make a decision on whether we should go ahead with HLB or SLB (Hardware Load Balancer or Software Load Balancer)? 

The obvious difference is that one is software and so needs to be installed on a server. That server can be of any configuration and therefore could be fast or slow, reliable or not etc etc (Totally depends on server configuration such has Ram size, CPU cores etc etc…Google it  know more). A hardware load balancer is a dedicated piece of hardware that you would install in your server rack.

The question comes down to your budget, experience and the importance of your product. If you have the money to spend, dedicated load balancers are the easy and safe way to go. But in a pinch, a dedicated server running load balancing software should be fine if you're able to configure it (depending on the hardware and traffic demands). Some of the things which should be kept in mind before taking any decision is mentioned below:
 
  1. Concurrent requests on your site.
  2. HA is required for your site or not (HA -> High availability)
  3. Performance/speed (HLB definitely enhance the performance of the site in many ways)
  4. Costs
  5. Downtime (Can you afford this?)
  6. In-house skill sets to setup and troubleshoot issues if you are setting up SLB yourself.
  7. Scalability (The most important parameter, IMO)

To terminate SSL most of the companies run SSL connections into Linux boxes running Apache. This setup is convenient and easy to setup but it's not optimized for SSL, so it's slow and costly operation. Much of the capacities of these servers are unnecessarily consumed processing SSL. Load balancers on the other hand have crypto cards that terminate SSL very efficiently in hardware. Getting rid of the Linux boxes and moving SSL to HLB will decrease load on Apache and eventually lower the number of request being processed by Apache which would eventually enhance Apache performance and a whole lot of CPU can easily be reclaimed. Client performance will also be greatly increased because SSL accelerators are faster at SSL than generic LINUX boxes. Though you can argue that Nginx can be used for the SSL and rest of the operations could be left with Apache, but again Nginx needs a dedicated Linux box to be set up.

SLB is a single point of failure. We can use Haproxy in front of apache. Haproxy and Apache both can act as SLB but Haproxy is more robust than Apache and is a reliable, High performance TCP/HTTP Load Balancer. It will not make you let you down. And the most important thing is it's open source or to be more specific it's FREE!!!!!FREE!!!!!FREE!!!!!!!.........And you know FREE is always better and give eternal happiness to us :) . Moreover you don't have to depend on 3rd Party for making any changes at LB level. Generally LB are maintained by third party or sysadmin and you will have limited or no access to it. So better go for Haproxy as Load balancer and Nginx for the serving https requests.

But as you organization grows bigger and bigger than you have to go for some robust and scalable architecture. Scalability is the biggest factor for any growing organization.HLB are dedicated LB and they were meant for some purpose and not merely for earning money by big fish like Cisco. A normal person can't even think to buy Cisco/F5/F20 load balancer because they are so costly. Definitely there are open source LB available but it doesn't solve your purpose solely ..........To explain in simple words ......You can cook doesn't mean you are a chef ;).So definitely hardware has its own 1001 advantages but you should know when to go for it ;until and unless you have enough money in pocket to shed off ;) . To be very practical, here the debate isn't really on "HLB" vs "SLB". It is on "buy a proven/tested/certified technology stack as an appliance” versus “builds it yourself using open source". 

I had tried my best not be biased and had given an overview about SLB as well as HLB. Now, the call is completely yours. 

My personal point of view:

Having a bit of knowledge about performance engineering (I am aware that HLB will definitely boost performance of application ;) ) ,being a bit of developer, a bit knowledge of Sysadmin , a bit knowledge of supporting & troubleshooting production issues, and doing production deployment frequently .......I would give my vote to Software Load Balancer. It’s a onetime pain to establish everything initially but once set up fully you would be the undisputed owner of it and can play around with it. Things are always easy if you are controlling it. Believe me, telling my personal experience, it's a pain in a** to go to sysadmin and request changes at LB level. These devices (HLB) are out of your control and are difficult to debug, provision, and test. So my vote goes to Software Load Balancer (SLB) and to be more specific HAProxy.

Had tried to cover up on how to use Apache as Software Load Balancer (using mod_jk configuration). Check this out: http://kulshresht-gautam.blogspot.in/2013/08/how-to-use-apache-as-software-load.html


Abbreviation used in this Blog : 

Load Balancer: LB
Hardware Load Balancer: HLB
Software Load Balancer : SLB

Wednesday, 7 August 2013

How to Monitor And Debug Memcached Server Using phpMemCachedAdmin


Download phpMemCachedAdmin tarball


#wget http://phpmemcacheadmin.googlecode.com/files/phpMemcachedAdmin-1.2.2-r262.tar.gz


Install phpMemCachedAdmin in `/var/www/html/memcached/` directory, create a folder memcached inside /var/ww/html/. Extract phpMemCachedAdmin.tar.gz and change permission for Memcache.php

# mkdir -p /var/www/html/memcached
# tar -xvzf phpMemcachedAdmin-1.2.2-r262.tar.gz -C /var/www/html/memcached/
# chmod a+rwx /var/www/html/memcached/Config/Memcache.php

Apache Configuration

Create a file "memcached.conf" inside /etc/httpd/conf.d and add below configuration in that file.

# cd /etc/httpd/conf.d
# vim memcached.conf

Add below configuration in memcached.conf

Listen 85
<VirtualHost *:85>
    ServerName   10.23.11.11
    UseCanonicalName Off
    ServerAdmin  "kulshresht@xyz.com"
    DocumentRoot "/var/www/html/memcached"
    CustomLog  /var/log/httpd/memcached-access_log common
    ErrorLog   /var/log/httpd/memcached-error_log
</VirtualHost>

P.S: You can use any port for phpAdmin , whichever is free for you. In mine case 80 and 81 were already used , therefore i had used 85.

Restart Apache: /etc/init.d/httpd restart
P.S: Do not forget to install php to see the UI interface -> [ sudo yum install php ]

Few snapshots are attached below for reference:












If you want to explore further on Memcache installation steps then go to below link:
http://kulshresht-gautam.blogspot.in/2013/07/memcached-installation.html


Thursday, 1 August 2013

Shell script to find total request vs error count in Apache logs

Tweak the below script to suit your log format .

#!/bin/sh
echo "" > /tmp/error.csv

outFile="/tmp/Error.txt"
outFile1="/tmp/Error_Count.txt"
outFile2="/tmp/Total.txt"
outFile3="/tmp/Total_Request.txt"

a=`cat /var/log/access.log|awk '{print $10}' | wc -l`
cat /var/log/access.log|awk '{print $4":"$10}' | awk -F':' '{print $2}' | sort | uniq -c > $outFile2

cat $outFile2 | awk '{for(i=1;i<NF;i++){ print $2 "  " $i*3}}' > $outFile3

b=`cat /var/log/access.log|awk '{print $10}' | grep "^5" | wc -l`
cat /var/log/access.log| awk '{print $4":"$10}' | awk -F':' '{if($NF>=500){print $2}}' | sort | uniq -c > $outFile

cat $outFile | awk '{for(i=1;i<NF;i++){ print $2 "  " $i*3}}' > $outFile1

mailsend -smtp mailserver.production.xyz.lan -port 25 -M "Total request count/Error count for `date +%m:%d:%Y` : $(expr $a \* 3) / $(expr $b \* 3) " -t kulshresht.gautam@xyz.com -f kulshresht.gautam@xyz.com -sub "Request / Error count" -attach $outFile1,text,a -attach $outFile3,text,a

Log format Sample:

1.2.3.4 - - [31/Jul/2013:00:00:00 +0530] 0 "GET  HTTP/1.1" 200 20 0 "http://www.xyz.com/adsjskds" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2)" "8D8E535ED8CBE15ED60C365.jvmnode1"



**Mailsend should be configured on your system.

**I am mutlipying the output by 3 because we have 3 apache web servers , and all 3 are under one Load Balancer.

Monday, 22 July 2013

Understanding Java Heap Space

Heap|Xms|Xmx|Jconsole|Heap Space|Java Heap Space
Before going in depth , let us first understand the basics of heap and stack....

Heap - what exactly is this?

  1. Class instances and arrays are stored in heap memory. Heap memory is also called as shared memory. As this is the place where multiple threads will share the same data .Instance variables and the Objects lie on Heap.
  2. The heap is memory set aside for dynamic allocation. Unlike the stack, there's no enforced pattern to the allocation and deallocation of blocks from the heap, you can allocate/deallocate a block at any given time.
  3. This includes the Objects created in local scope of any methods. In this case, reference variables to local objects are stored with method frame in a stack, but actual object lies in heap.
  4. The heap is typically allocated at application startup by the runtime, and is reclaimed when the application (technically process) exits.

Stack - what exactly is this?
  1. Local variables and methods lie on the Stack.
  2. Java stacks (Sometimes referred as frames) are created private to a thread. Every thread will have a program counter (PC) and a java stack. PC will use the java stack to store the intermediate values, dynamic linking, return values for methods and dispatch exceptions. Every thread, including the main thread, daemons threads - get their own stack.
  3. When a thread invokes a method, the JVM pushes a new frame onto that thread's Java stack.
  4. All method calls, arguments, local variables, reference variables, intermediate computations and return values if any are kept in these stack corresponding to the method invoked.
  5. The memory allocated for frame does not need to be contiguous.
  6. The stack is always reserved in a LIFO order; the most recently reserved block is always the next block to be freed.
  7. The stack is attached to a thread, so when the thread exits the stack is reclaimed.

Gist:
  1. Local Variables are stored in stack during runtime.
  2. Static Variables are stored in Method Area.
  3. Arrays are stored in heap memory.
  4. Stack does not need to be contiguous.
  5. The stack is faster because the access pattern makes it trivial to allocate and deallocate memory from it (a pointer/integer is simply incremented or decremented), while the heap has much more complex bookkeeping involved in an allocation or free. Also, each byte in the stack tends to be reused very frequently which means it tends to be mapped to the processor's cache, making it very fast.


Heap Regions



[ Offline comment --> Used "sketchboard.me" provided by chrome store to make above snap. Cool stuff from Google. Try that out too :) ]



  1. Eden Space (heap): pool from which memory is initially allocated for most objects.
  2. Survivor Space (heap): pool containing objects that have survived GC of eden space.
  3. Tenured Generation (heap): pool containing objects that have existed for some time in the survivor space.
  4. Permanent Generation (non-heap): holds all the reflective data of the virtual machine itself, stores class level details, loading and unloading classes (e.g. JSPs), methods, String pool. PermGen contains meta-data of the classes and the objects i.e. pointers into the rest of the heap where the objects are allocated. The PermGen also contains Class-loaders which have to be manually destroyed at the end of their use else they stay in memory and also keep holding references to their objects on the heap.
  5. Code Cache (non-heap): HotSpot JVM also includes a "code cache" containing     memory used for compilation and storage of native code.

Understanding Heap allocation and Garbage Collection


Garbage collection (GC) is how the JVM frees memory occupied by objects that are no longer referenced. Garbage collection is the process of releasing memory used by the dead objects. The algorithms and parameters used by GC can have dramatic effects on performance.

The Java HotSpot VM defines two generations: the young generation (sometimes called 
the "nursery") and the old generation. The young generation consists of an "Eden space"
and two "survivor spaces." The VM initially assigns all objects to the Eden space, and
most objects die there. When it performs a minor GC, the VM moves any remaining
objects from the Eden space to one of the survivor spaces. The VM moves objects that 
live long enough in the survivor spaces to the "tenured" space in the old generation. When
the tenured generation fills up, there is a full GC that is often much slower because it
involves all live objects. The permanent generation holds all the reflective data of the
virtual machine itself, such as class and method objects.













Figure: Generations of Data in Garbage Collection


Points to remember (Tips which can be very useful for tuning Heap):


Garbage collection can become a bottleneck in highly parallel systems.  By understanding how GC works, it is possible to use a variety of command line options to minimize that impact. Java heap allocation starts with min size -Xms and increases upto Xmx. At any point, it has used heap(heap actually in use), committed heap (allocated heap at that point. includes used + free), max heap(max heap that can be allocated).Try to keep -Xms and -Xmx same to reduce frequent Full GC.

The bigger the young generation, the less often minor collections occur. However, for a bounded heap size a larger young generation implies a smaller old generation, which will increase the frequency of major collections (full GC's)


-XX:NewRatio=3 means that the ratio between the young and old generation is 1:3; in other words, the combined size of eden and the survivor spaces will be one fourth of the heap.


Recommended JVM parameters (Can differ from application to application. Study more and get the best tuning for your application)



export CATALINA_OPTS="-Xmx4096m –Xms4096m -Xmn1g -XX:ParallelGCThreads=
16 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8
 -XX:TargetSurvivorRatio=80 -XX:PermSize=512M -XX:MaxPermSize=1024M"
  1. Add -Xmn1g parameter [To mainly take care of young generation objects]
  2. Add  -XX:ParallelGCThreads=16  [Formula for this: We get 1 parallel GC thread per CPU for up to 8 CPUs, and 5/8 after that (so for 16 CPUs we get: 8 + 5/8 x 8 = 13
  3.  GC threads).]
  4. Add -XX:SurvivorRatio=8 
  5. Add -XX:TargetSurvivorRatio=80
  6. -XX:NewRatio=3
  7. Try to keep -Xms and -Xmx same to reduce frequent Full GC.
  8. Always use CATALINA_OPTS if if you're setting environment variables for used only by Tomcat, you'll be best advised to use CATALINA_OPTS, whereas if you're setting environment variables to be used by other java applications as well, such as by JBoss, you should put your settings in JAVA_OPTS. http://stackoverflow.com/questions/11222365/catalina-opts-vs-java-opts-what-is-the-difference


Use Jconsole to capture the clearest picture of how the different generations of memory are behaving for your application .Below is a good example of how to enable JMX port for monitoring your application using Jconsole/JvisualVM.

e.g: 

##### JConsloe options added by Kulshresht to analyse heap memory  ----------

CATALINA_OPTS="$CATALINA_OPTS  \
                               -Dcom.sun.management.jmxremote \
                               -Dcom.sun.management.jmxremote.port=15556 \
                               -Dcom.sun.management.jmxremote.ssl=false \
                               -Dcom.sun.management.jmxremote.authenticate=false\
                               -Djava.rmi.server.hostname=19.83.73.82"

Jconsole & JvisualVM are inbuilt JDK tools. So there is no extra tension of installing other softwares (assuming you already have JDK installed :)). JvisualVM has great graphics. The only disadvantage with these tools is that they do not save historical data. So, if something goes wrong with your application at midnight then you can't trouble shoot the issue withe these graphs until and unless you have enabled the Jconsole UI (24*7) on a particular machine. Don't get disheartened , there is always a way :). The tool which can be used to store historical data is "Hyperic".



Wednesday, 17 July 2013

Best tool to analyse thread dump

If we use jstack to take thread dump.Most of the time thread dump gets corrupted and it becomes difficult to analyse it.Tools like threadlogic, tda, can't parse a jstack thread dump, but there is a tool https://github.com/brass-kazoo/ParseJStack that produces a limited summary.

Try this out......https://github.com/brass-kazoo/ParseJStack

Courtsey : Peter Booth


Tuesday, 16 July 2013

Honest and Fake..........

I will share experiences of my life's journey ( though i had only completed 1/3rd of my life ....assuming i would live 85+ years ;) ) , in simple words, which may not leave you inspired, but will definitely help you to survive at least this life.But don't expect that i will show you the way to paradise :) . 

And if you follow my words then happiness (to some extent), creativity and success will follow on its own - or maybe not but you will have to live this life nevertheless. Don't come running after me if you are not able to achieve even a single one of them. But I assure you that you would applaud me at the end of this small speech and think that .....yeah this guy understand life not to the best of it but yaah to a better extent .

Journeys can be defined by age and time or even by destinations, as most often they are. But I feel it is hard for me to tell the story of my life in those terms because the concept of time has always eluded me. But i firmly believe that time is best medicine. It will not cure your pain completely but will work as anaesthesia and will keep you away from your past deeds ( categorically the bad ones ;)). Considering you are willing to allow time to inject anaesthesia in you . Remember, you have to move on in your life and never get stuck at any station. Life is like a train , don't get stuck at one station and don't let others to be the driver of your train.Don't get too much attach to anyone and don't let others to get over you. Everybody will leave you one day or other. Some will leave you because they had too and some without reason.Read this prayer somewhere and the writer couldn't have been more expressive "GOD grant me SERENITY to accept the things i cannot change,COURAGE to change the things I Can and WISDOM to know the difference."

Remember one thing "Change is the only constant thing in life" . Mark this golden words. It explains the whole life in 8 simple words.

Invest more in relationships.But don't expect returns.We human do that mistake every time and we have to pay the price at some stage.

It's always important to be in state of love to get best out of an individual. Love can be in any form.....You can be in love with your  Parents, Sister, Brother ,a girl, two girls ;) or a boy or any of your friend. It doesn't matter that you are in love with whom.........what matters is to be in state of love. I have been in love across all the category mentioned above (except the boy one :) .........though Gay marriage is now legal in many parts of world ;) ) . Jokes apart.........keep yourself in the state of love otherwise you would never know that whatever you are doing in life is for whom.You will be directionless/aimless. Understand the power of love. We youngster generally interpret love in wrong perspective. We think that loving a girl or rather beautiful girl is the only type of love which exist on this planet earth . In my case it was "Kristen Stewart" for a long span of life ......hahahahaha :).

Once my father told me when i was in standard four that "there can be substitute to your father but not your Mother." And he couldn't have been more expressive.Always respect your parents because they are the only one who will stand beside you till the end of your life.Parents want nothing in return, just respect their feeling, that's all.

Never ever try to imitate anybody. Be yourself. It's frustrating that I find myself living up to other people's interpretation of what I ought to be.It becomes a tight balance act, to keep doing what I do best and not be bothered by the reactions of people I do it for, in the first place.

Sometimes you would get hurt, feel tired, get frustrated but never give up.All I am is a fighter trying to balance my action and exterior reaction to my naked show of who I am inside. Learn to mock at yourselves too. Never become cynical about yourself. Becoming cynical about yourself or your life will destroy you at the end.

90% people don't care about your problem and rest 10% are happy to know that you have the problem (I will put myself in 90% category for most of the time....therefore it's not that I am untouched by these things.......But there are always 1% people for whom you matter everything and they matter everything for you. These 1% can be your family members, friends etc. But this 1% doesn't come under the same 100% mentioned earlier because they are beyond that 100% but are only 1%. I assume you got what i meant ;) ). So best way is don't discuss your problems with anyone. It's bullshit that people say that you will ease yourself by talking your problems with others. It's a myth. Face the issue/situation on your own because you are the originator of that problem and no one else, so don't expect others to solve your problem. You are alone doesn't mean that you are weak, It means that you are strong enough to handle all problems alone.

Success is a wonderful thing but we don't acquire wisdom from it. Therefore enjoy it ,feel it but don't try to push it hard on others. Will explain this in detail some other time in my next blog ( This space seems to be too small :) ). I had read "You can win" by shiv khera when i was in 12th standard and got inspired for 2-3 days but the tempo went down after couple of days. Motivation is a good thing but it needs to come from inside and not by someone else. I have always been terrified of failure since my childhood and that's the reason which kept me going. I am not trying to be pessimistic here but this is the truth of life,believe it or not.

So my friends, I am giving rest to my fingers here. I know that I have been contradictory to myself at many places but that's what I am.......Honest and Fake.