# Setting Thread Affinity for Increased Throughput

If the default behavior of the EMS server cannot provide the required throughput and the EMS server machine has multiple cores, you can assign specific cores to the EMS threads that handle network traffic and stores.

For instance, with a 4-core machine, you can use the `processor_ids` parameter to assign core 0 and core 1 to handle network traffic. You can also use the store configuration `processor_id` parameter to assign core 2 to handle the `$sys.failsafe store`. This configuration causes the EMS server to create two threads that handle network traffic, and sets the affinity of them to core 0 and core 1 respectively. It also sets the affinity of the thread handling the store `$sys.failsafe` to core 2. No affinity is set for other threads.

Copyright © Cloud Software Group, Inc. All rights reserved.