Вопрос

I am investigating different structures for our database, which is expected to contain millions of files. I have narrowed it down to two different models; one of which is 4 times faster and uses 3 times less CPU, but uses 4 times more IO reads than the other.

So what is more expensive in both money and server bottlenecks, considering we are planning to host it in either Amazon or Azure cloud, IO or CPU?

Это было полезно?

Решение

It totally depends on the type of IO device and the size of the virtualized instance used. In a cloud hosted environment the real hardware specs are totally abstracted into marketing terms like EC2 Compute Unit. The only real way to know is to spin up in all environments and load test. Anything else is just a plain old guess.

Другие советы

Just want to add one more variable - Memory. High memory instances can dramatically reduce the IOPS / CPU requirements.

For example - a MongoDB instance which have most of its working set in memory - hardly do IO calls.

And I agree with jeremyjjbrown - test, test, test. Your KPI would be transactions (R/W) per seconds and transactions per Dollar.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top