# Scaling up elastic search using virtual CPUs (vCPUs)

**URL:** <https://discuss.elastic.co/t/scaling-up-elastic-search-using-virtual-cpus-vcpus/54253>\
**Category:** Elasticsearch\
**Created:** [June 29, 2016, 9:37am UTC](https://discuss.elastic.co/t/scaling-up-elastic-search-using-virtual-cpus-vcpus/54253 "2016-06-29T09:37:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pulkits123](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pulkits123](https://discuss.elastic.co/u/pulkits123)\
**Post date:** [June 29, 2016, 9:37am UTC](https://discuss.elastic.co/t/scaling-up-elastic-search-using-virtual-cpus-vcpus/54253/1 "2016-06-29T09:37:32Z")

</div>

I am trying to index logdata using elastic search. I have been using a windows machine of 8gb ram. But now I want to scale it up and reduce the response time which comes in 10-20secs. So, I now want to run my elastic search on a virtual machine with 4vCPUs of 8gb ram each. The machine runs RHEL operating system. I tried the same indexing on this machine but got the same response time with no improvement. I think this is happening because elastic search is using only 1vCPU instead of all 4. As a result, I am getting almost similar performance. How can I make my elastic search to use all the vCPUs in order to improve the performance?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 29, 2016, 10:44am UTC](https://discuss.elastic.co/t/scaling-up-elastic-search-using-virtual-cpus-vcpus/54253/2 "2016-06-29T10:44:12Z")

</div>

ES doesn't care whether your CPUs are physical or not. How many shards do your indexes have? What kind of queries are you making?

---

<div class="post-metadata">

**Author:** ![pulkits123](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pulkits123](https://discuss.elastic.co/u/pulkits123)\
**Post date:** [June 29, 2016, 11:47am UTC](https://discuss.elastic.co/t/scaling-up-elastic-search-using-virtual-cpus-vcpus/54253/3 "2016-06-29T11:47:38Z")

</div>

Hi thanks for the reply. I have 10 shards per index and I run queries similar to the following query-

```
	\"size\" : 0,
	\"aggs\" :
	{
		\"all-top-app_used\":
		{
			\"terms\": 
			{
				\"field\": \"AppName\",
					
				\"order\": 
				{
					\"sum11\": \"desc\"
					
				},
				\"size\" : 10
				
			},
			\"aggs\":
			{
				\"sum11\":
				{
					\"sum\":
					{
						\"field\": \"TotalTime\"
					}
				}
			}
		}
	}
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:39pm UTC](https://discuss.elastic.co/t/scaling-up-elastic-search-using-virtual-cpus-vcpus/54253/4 "2017-07-05T22:39:35Z")

</div>


