|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Satyanarayana_Addepalli - regarding grinder.......Satyanarayana,
My reply to your original mail kept bouncing so sending it to user-list so you can see it. - > > > > Here is an option for load across various machines, I used this earlier. > > > > 1. Using DNS or load balancer - DNS based load balancing has an option to have > a > > single hostname which has multiple hosts in it and DNS selects one host at a > > time when the main hostname is accessed. > > However this can be tricky in large companies. > > > > 2. Using grinder. > > > > You can put your hostnames in an an array or a coma separated list and then > use > > the random function to select a host from it. > > Here is my code: I am assuming you have the application on different hosts > with > > same port. If it is port 80 then you don't have to worry about the port. > > > > ---- > > hostnames = host1:7777, host2:443(ssl), host3:7777, host4:443(ssl) > > > > def gethost(): > > hosts = hostnames.split(',') > > host = hosts[(int(grinder.threadID) % len(hosts))] > > return('http://' + host.split(':')[0] + ':' + host.split(':')[1], > > 'https://' + host.split(':')[0] + ':' + host.split(':')[2]) > > > > The call the above function in the __init__ section of each script. as shown > > here: > > > > class TestRunner: > > def __init__(self): > > (self.httphost,self.httpsechost) = shf.gethost() > > > > self.httpsechost is SSL host > > > > Then use self.httphost or self.httpsechost in your requests. > > > > 2. I didn't understand what you meant by IP spoofing using grinder. Do you > want > > to see if the hosts are being accessed? If so look at the out log file. > > > > Let me know if you have further questions, I will be glad to help. > > > > Anil > > -------------- Original message ---------------------- > > From: Satyanarayana_Addepalli <Satyanarayana_Addepalli@...> > > > Hai anil, > > > This is satya.A and am doing research on performance testing tool GRINDER.I > > got > > > struck in few areas. Please help me. > > > The areas where I have struck up are: > > > > > > 1)distributing load across various machines. Please help me through the > > process > > > > > > 2)I need the detailed process of IP spoofing using grinder with clear-cut > > > explanation. > > > > > > Please share your valuable knowledge with me. > > > I will be very grateful to you if you get me through these things. > > > > > > Regards > > > Satyanarayana.A > > > HCU-Qedge > > > Satyam Computer Services Ltd > > > Vizag City Center > > > > > > > > > ________________________________ > > > DISCLAIMER: > > > This email (including any attachments) is intended for the sole use of the > > > intended recipient/s and may contain material that is CONFIDENTIAL AND > PRIVATE > > > COMPANY INFORMATION. Any review or reliance by others or copying or > > distribution > > > or forwarding of any or all of the contents in this message is STRICTLY > > > PROHIBITED. If you are not the intended recipient, please contact the > > by > > > email and delete all copies; your cooperation in this regard is appreciated. > > > > > > > > > ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ grinder-use mailing list grinder-use@... https://lists.sourceforge.net/lists/listinfo/grinder-use |
|
|
Re: Satyanarayana_Addepalli - regarding grinder.......Satyanarayana,
I also got a bounce when I replied to a private mail from you. For 2 - this is possible, please search the mailing lists for the subject "IP Spoofing". - Phil anil_jacob@... wrote: > Satyanarayana, > > My reply to your original mail kept bouncing so sending it to user-list so you can see it. > > - > >>> Here is an option for load across various machines, I used this earlier. >>> >>> 1. Using DNS or load balancer - DNS based load balancing has an option to >>> > have > >> a >> >>> single hostname which has multiple hosts in it and DNS selects one host at a >>> time when the main hostname is accessed. >>> However this can be tricky in large companies. >>> >>> 2. Using grinder. >>> >>> You can put your hostnames in an an array or a coma separated list and then >>> >> use >> >>> the random function to select a host from it. >>> Here is my code: I am assuming you have the application on different hosts >>> >> with >> >>> same port. If it is port 80 then you don't have to worry about the port. >>> >>> ---- >>> hostnames = host1:7777, host2:443(ssl), host3:7777, host4:443(ssl) >>> >>> def gethost(): >>> hosts = hostnames.split(',') >>> host = hosts[(int(grinder.threadID) % len(hosts))] >>> return('http://' + host.split(':')[0] + ':' + host.split(':')[1], >>> 'https://' + host.split(':')[0] + ':' + host.split(':')[2]) >>> >>> The call the above function in the __init__ section of each script. as shown >>> here: >>> >>> class TestRunner: >>> def __init__(self): >>> (self.httphost,self.httpsechost) = shf.gethost() >>> >>> self.httpsechost is SSL host >>> >>> Then use self.httphost or self.httpsechost in your requests. >>> >>> 2. I didn't understand what you meant by IP spoofing using grinder. Do you >>> >> want >> >>> to see if the hosts are being accessed? If so look at the out log file. >>> >>> Let me know if you have further questions, I will be glad to help. >>> >>> Anil >>> -------------- Original message ---------------------- >>> From: Satyanarayana_Addepalli <Satyanarayana_Addepalli@...> >>> >>>> Hai anil, >>>> This is satya.A and am doing research on performance testing tool GRINDER.I >>>> >>> got >>> >>>> struck in few areas. Please help me. >>>> The areas where I have struck up are: >>>> >>>> 1)distributing load across various machines. Please help me through the >>>> >>> process >>> >>>> 2)I need the detailed process of IP spoofing using grinder with clear-cut >>>> explanation. >>>> >>>> Please share your valuable knowledge with me. >>>> I will be very grateful to you if you get me through these things. >>>> >>>> Regards >>>> Satyanarayana.A >>>> HCU-Qedge >>>> Satyam Computer Services Ltd >>>> Vizag City Center >>>> ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ grinder-use mailing list grinder-use@... https://lists.sourceforge.net/lists/listinfo/grinder-use |
| Free Forum Powered by Nabble | Forum Help |