AX 2012: Batch Server Configuration

Posted on Updated on

To configure an AOS instance as a batch server go to System Administration > Setup > System and open Server Configuration form. Select the AOS instance to configure from the grid on the left. Check Is batch server to specify this instance as a batch server. Expand the fast tab Batch Server Schedule. Mention the Maximum batch threads along with start and end times.

Please note that maximum batch threads only controls how many concurrent threads will be running on this instance. You can create as many threads as you like in x++. For example, maximum batch threads is set to 20 and your x++ code is creating 30 threads to perform a job. In this case, first 20 out of 30 threads will be running concurrently while the remaining 10 threads will be in the waiting state till the first 20 threads finish their job.

You can specify multiple maximum batch threads and bind them to specific time slots using Start time and End time. In this way we can configure the same AOS instance to allow different maximum batch threads in different time slots. For example, in rush hours we can specify more concurrent threads as compared to idle hours!

Feel free to comment in case of any questions!

Image

Advertisements

2 thoughts on “AX 2012: Batch Server Configuration

    Varun said:
    August 30, 2016 at 7:56 am

    if we select 16 batch threads to run con currently, is it possible that this might shoot up the CPU utilization as 16 is not the optimal number ?

    muhammadanaskhan responded:
    August 30, 2016 at 6:27 pm

    Purely depends on the AOS hardware. I have run batch jobs with 8 concurrent threads on 20 GB AOS. And it runs without any issue

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s