how to send 10000 http request for every 20 seconds using JMETER - testing

What should be the ramp up time when i need to send 10k request[each request has 6http subsequent calls], I need to send 1 request per minute. and i need to send one request for every 20seconds

Your post contains 4 questions which are mutually exclusive so I provide a generic answer:
If you want to send X requests at exactly the same moment:
Add X thread (virtual users) to Thread Group
Add Synchronizing Timer to the request and set Number of Simultaneous Users to Group by to X
If you want to send 1 request per minute - add Constant Throughput Timer to your request and set Target Throughput to 1
If you want to send 1 request each 20 seconds - the same approach as for point 2 but Target Throughput will be 3
Ramp-up is the time period for starting virtual users, normally normal people use it for gradual load increase, for example if you have 10 users and 10 seconds ramp-up JMeter will start 1 user each second, if you have 10 users and 20 seconds ramp-up JMeter will start each user each 2 seconds, etc.

Related

How many short urls can be generated per day for Firebase Dynamic Links?

https://firebase.google.com/docs/dynamic-links/rest
The document says "Requests are limited to 5 requests/IP address/second, and 200,000 requests/day.".
So which is correct?
"200,000 total times per day" or "200,000 times per 1 IP Address per day"??
Look at it more like, 5 requests/IP address/second as a rate - you can't exceed that number of requests sent per IP address per second.
Whereas 200,000 requests/day is the total limit of requests you can send per day.
So, you're probably looking for the answer as 200,000 total requests per day.
If you require it, you can request to increase your quota using this form.
Enter the following fields to request the increase in Firebase Dynamic Links API quota. We have default spread quota (200,000 queries per day) and burst (500 queries per 100 seconds). Consider spreading your load over a longer period of time before requesting.

How to set limit for particular no. of sample in jmeter

example ,i want JMeter to run for 100 samples only on 100 thread.
Each JMeter thread (virtual user) executes Samplers upside down for the defined number of iterations.
If you have 1 Sampler, 100 users and 1 iteration - you will have 100 executions
If you have 1 Sampler, 100 users and 2 iterations - you will have 200 executions
If you have 1 Sampler, 200 users and 2 iterations - you will have 400 executions
If you have 2 Samplers, 200 users and 2 iterations - you will have 800 executions
etc
The number of users and iterations can be set in the Thread Group.
If you want to execute a particular sampler only by the 1st user - go for If Controller and use __threadNum() function to determine the number of the current user
If you want to execute a particular sampler i.e. 5 times and others 100 times - go for Throughput Controller

JMeter: New data to be created automatically in HTTP Request

I need to create a http request in JMeter to submit bulk API requests.
Inorder to do that, I have created a code in RunSwift tool to generate the bulk API requests and then aligned the requests in https://jsonlint.com website and then copied/pasted them in Jmeter.
What I am trying to Achieve:
Currently, if I have to submit 3-4 batches of API requests every 15 min, I am manually performing the above activities and replacing the content every time in HTTP request.
I was given a requirement that the batch job should submit 200 request every 15 min for continuous 8 hrs.
I feel that my current approach is not sustainable as I have to replace the content 32 times (every 15 min for 8 hrs).
Hence I would like to take your suggestion on how i can refresh the data in the API request every 15 min.
Replace hard-coded values like user name, address, phone, email, whatever with random entities which will be generated on the fly using the following JMeter Functions:
__Random() - generates a random integer within the given range
__RandomString() - generates a random string from given input characters
__UUID() - generates an unique GUID structure
__time() - returns current timestamp
You can inline JMeter Functions directly into your HTTP Request sampler body like:
See Apache JMeter Functions - An Introduction to get familiarized with JMeter Functions concept.

BigQuery: I have reached the daily limit for Load Jobs. When does the quota reset back to 0?

I have exceeded the daily limit for the number of import to a specific table.
(Max=1000 imports according to the documentation here: https://developers.google.com/bigquery/quota-policy#import )
I would like to know when exactly does the quota reset back to 0? Is it 24hours after I exceeded the quota, or is it at a specific time?
As of this July 18 2014, all daily quotas are partially replenished every 10 minutes or so.
The first time you run a load job to a table (or if you haven't done so in a while) you'll get 1000 loads. Every few minutes, the quota will partially replenish, up to a maximum of 1000 available.
While this sounds complex, it means that you never get in a situation where you run out of daily quota and have to wait up to 24 hours for quota to reset. Instead, if you run out of quota you can start running jobs fairly soon thereafter (as long as you stay within the replenishment rate).
Hope that is helpful.

Dealing with Amazon Product Advertising API Throttle limits

For those of you who use the Amazon Product Advertising API, what experience have you had with running into their throttle? Supposedly, the limit is set at 1 request per second, is that your experience?
I want my site to grow to be nation-wide, but I'm concerned about its capability to make all the Amazon API requests without getting throttled. We cache all the responses for 24 hours, and also throttle our own users who make too many searches within a short period.
Should I be concerned? Any suggestions?
I believe they have changed it. Per this link:
https://forums.aws.amazon.com/message.jspa?messageID=199771
Hourly request limit per account = 2,000 + 500 * [Average associate revenue driven per day over the past 30 days period]/24 to a maximum of 25,000 requests per hour.
Here is the latest on request limits that I could find, effective Sept 3rd, 2012.
If your application is trying to submit requests that exceed the
maximum request limit for your account, you may receive error messages
from Product Advertising API. The request limit for each account is
calculated based on revenue performance. Each account used to access
the Product Advertising API is allowed an initial usage limit of 1
request per second. Each account will receive an additional 1 request
per second (up to a maximum of 10 requests per second) for every
$4,600 of shipped item revenue driven per hour in a trailing 30-day
period.
https://affiliate-program.amazon.com/gp/advertising/api/detail/faq.html
They have updated their guidelines, you now have more requests when you sell more items.
Effective 23-Jan-2019, the request limit for each account is calculated based on revenue performance attributed to calls to the
Product Advertising API (PA API) during the last 30 days.
Each account used for Product Advertising API is allowed an initial
usage limit of 8640 requests per day (TPD) subject to a maximum of 1
request per second (TPS). Your account will receive an additional 1
TPD for every 5 cents or 1 TPS (up to a maximum of 10) for every $4320
of shipped item revenue generated via the use of Product Advertising
API for shipments in the last 30 days.
Source: https://docs.aws.amazon.com/AWSECommerceService/latest/DG/TroubleshootingApplications.html
Amazon enforces limits on how many calls you can make per hour and per second.
You can increase the former by following the sanctioned route (increase commission revenue) or by privately petitioning Amazon with a valid reason. When whitelisted, your limit will go up to 25,000 calls per hour, which is more than good enough for the vast majority of projects I can think of.
The latter limit is murkier and enforced depending on the type of query you make. My interpretation is that it is meant to keep serial crawlers who do batch item lookups in check. If you are simply doing keyword searches etc., I would not worry so much about it. Otherwise, the solution is to distribute your calls across multiple IPs.
One other point to keep in mind if you are querying multiple locales is to use separate accounts per locale. Some locales are grouped and will count to the same call quota. European Amazons, for instance, form such a pool.