Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to know how many resources (MySQL time, CPU usage, bandwidth, etc.) will use my system with a certain number of API calls per second.

One API call gets the parameters in PHP, do from 1 to 5 SQL queries and returns a XML file.

How I can do that? Any idea of a formula or something?

share|improve this question
    
this just cannot be answered. You will need to do your own benchmarks and go from there. –  Ben Pilbrow Dec 30 '10 at 16:36
add comment

1 Answer 1

up vote 0 down vote accepted

Use something like httperf to make constant load to your server like for example 10 req/sec Then you will have value how much your server is loaded at 10 req/sec, just scale that value up/down.

Of course, testing it "right" is very hard, as some calls will be shorter than other, so you have to know load profile of each req. type and how often each type of request is used.... or replay "production" traffic

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.