SlideShare a Scribd company logo
#ATAGTR2017
16th 17th March
Batch Workload Modelling and
Optimization
Ashish Powar
Agile Testing Alliance Global Testing Retreat 2017
Objective
2
This Presentation covers the following aspects
Importance of Batch Performance tuning
Commonly faced Issues due to over running batches
Batch Workload Modelling
Analyzing Test data requirements for batches
Parameters to be monitored for batch optimization
Real example of batch tuning & benefits to the client
Workload to move to cloud
Agile Testing Alliance Global Testing Retreat 2017 3
Importance of Batch Performance Tuning
• Improper tuning of batch processes results in additional costs of hardware upgrades.
• Inefficient batches will not make optimal use of available resources
• Batches not meeting the SLA impact/delay the start of the online day
• Impact to online transactions due to High CPU usage by inefficient batches running in parallel
 Leading UK bank suffered major IT
incident affecting the group
overnight batch processing system
which caused severe disruption to
many of its IT systems.
 The IT incident resulted in the
Group being unable to update
customer account balances process
payments and participate fully in
clearing with normal timeframes
 For a leading insurance
provider delay in reconciliation
of data blocked the customers
from renewing their insurance
policies.
 This incident caused lot of
customers to lose credibility
and the insurance provider
had to deal with huge
financial implications
 One of the worlds largest stock
Exchange brought down due to
failure in the computer systems
that feed stock prices to bank and
brokerages
 On further analysis it was
identified that the incident was
caused due to delay in the batch
feed update
Agile Testing Alliance Global Testing Retreat 2017
• Delay in start of business day thus impacting online processing
• Data inconsistency issues - online services are dependent on previous night’s batch activity
• Database locking – Impact to online response time due to table locks by batches running in parallel.
• CPU/Memory – High CPU/memory usage due to batches running in parallel(above fig 2)
0
100
200
300
400
500
600
11:00
12:00
13:00
14:00
15:00
16:00
17:00
18:00
19:00
20:00
21:00
22:00
AverageResponseTime(Sec)
Concurrent Sessions
Impact on processing time due to DB
lock
Concurrent Sessions
0
20
40
60
80
100
10:00
10:30
11:00
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
AverageResponseTime(Sec)
Concurrent Sessions
CPU Utilization
% CPU Batch+Online % CPU Online only
4
Commonly faced Issues due to over running batches
Agile Testing Alliance Global Testing Retreat 2017 5
Batch
Workload
Modelling
Identifying
workload to
move to Cloud
Test data
Analysis/Setup
Batch
Execution
Monitoring &
Optimization
Areas of focus for batch Performance Optimization
Agile Testing Alliance Global Testing Retreat 2017
Maximum number of batches were executed at 24:00 hrs i.e. 3 with 300 records processed
6
Batch Workload Modelling
• Batches that run in isolation without any other activity in parallel
• Batches initiated as part of online sync process and run in background
• Batches that run in parallel with the online activity
Workload modelling for batch testing should simulate below real-time
production activities:
0
2
4
6
8
10
12
14
12.00AM
2.00AM
4.00AM
6.00AM
8.00AM
10.00AM
12.00AM
14.00PM
16.00PM
18.00PM
20.00PM
22.00PM
24.00PM
NoofBatches/durationofbatchwindow
Time
Batches and Batch Window
No of Batches Batch window
0
50
100
150
200
250
300
350
12.00AM
2.00AM
4.00AM
6.00AM
8.00AM
10.00AM
12.00AM
14.00PM
16.00PM
18.00PM
20.00PM
22.00PM
24.00PM
Noofbatches/recordsprocessed
Time
Batches and Records Processed
No of Batches Records processed
Agile Testing Alliance Global Testing Retreat 2017 7
Workload to move to cloud
DNS
Process auto- scales based on
jobs in the queue
Load Balancer
Queue
Cloud Files
App Servers
• Unpredictable load or potential for growth
• Partial Utilization
• Easy Parallelization
• Auto scale as per requirement
Criteria to move workload to cloud
Benefits of cloud
• Help Organization to pay based on the
need and usage
Agile Testing Alliance Global Testing Retreat 2017 8
Analyzing Test data requirements for batches
Batch Test data analyses involves the below
• Reference data required for testing
• Data to be copied on top of reference data
• Input data for execution depending on the functionality
• The composition of data (intersection of fields) is also important to simulate the actual production scenario
• Need for historical data in DB for replication of production scenario
Agile Testing Alliance Global Testing Retreat 2017
Job 2
Job3
Job4
Elapsed time
9
Parameters to be monitored for batch optimization
• Elapsed Time - The total duration taken by the batch to complete
• Throughput - Throughput is critical as batches process large volumes of data.
• CPU/Memory Utilization - Needs to be within limit of batch job is expected to consume.
• I/O Operations - Use of MOM, clustering and shared storage to spread the load
• DB Connection Pool/Thread Pool - Both the parameters need to be monitored for optimal value for the batch
• Slow running Queries – Identify slow running queries with respect to DB
Batch
Parameters
Elapsed Time
Throughput –
I/o
CPU/Memory
Utilization
Slow running
Queries
DB
Connection
Pool/Thread
Pool
Agile Testing Alliance Global Testing Retreat 2017 10
Validations that help to speed up batch processing
• Pooling - Retrieve small sets of batch items for processing at a time
• Locks - Monitor the locks acquired/sec
• Write Log - Monitor the total log flush (WRITELOG value)
• Index and Fragmentation - Indexing and defragmentation after the batch.
• Disable constraints - Need to considered if data is correct
• Triggers - Need to validate if needed during batch execution
• Wait Statistics - Need to be monitored for slowing down of server
Agile Testing Alliance Global Testing Retreat 2017 11
Real examples of batch tuning & benefits to the client
• Optimization of the SQL queries
• Use of Parallelism
• Making efficient use of CPU resources
• Use of quality metrics, like track job failures and test management tools
As part of an assignment with a leading UK bank, the below optimization
helped to reduced the batch elapsed time to meet the SLA:
Gains due to above optimization:
• Batch elapsed time reduced to 75 mins on a normal day (vs. 180 mins across similar period
before)
• Reduction in production systems running costs of around £245k per annum
• Estimated reduction in development systems running costs of £ 122k per annum
• Batch system utilization reduced to permissible limits during the overnight batch window
Agile Testing Alliance Global Testing Retreat 2017 12
Conclusion
• Inefficient batches lead to financial implications and impact to online activity
• Proper workload modelling is key to success of batch testing
• Proper analyses needs to be carried to identify workload to move to cloud
• Scope for optimization can be identified based on the monitors setup during batch execution
• Monitoring of the key DB parameters are critical for efficient batch optimization
13
Thank You
Thank you
ANY QUESTIONS?

More Related Content

PPTX
cloud computing basics
PDF
Failure Friday: Start Injecting Failure Today!
PPTX
Overview of HPC.pptx
PPT
Operating-System Structures
DOCX
Liturature servey of rain technlogy by narayan dudhe
PPT
Managing Cultural Diversity
PPTX
Deep deterministic policy gradient
ODP
Building highly available architectures with WAS and MQ
cloud computing basics
Failure Friday: Start Injecting Failure Today!
Overview of HPC.pptx
Operating-System Structures
Liturature servey of rain technlogy by narayan dudhe
Managing Cultural Diversity
Deep deterministic policy gradient
Building highly available architectures with WAS and MQ

What's hot (6)

PPTX
Dependability and security (CS 5032 2012)
PPTX
GAN with Mathematics
PDF
Deformable Convolutional Network (2017)
PDF
Pragmatic Guide to Apache Kafka®'s Exactly Once Semantics
PPTX
Investing the Effects of Overcommitting YARN resources
PPT
cloud storage
Dependability and security (CS 5032 2012)
GAN with Mathematics
Deformable Convolutional Network (2017)
Pragmatic Guide to Apache Kafka®'s Exactly Once Semantics
Investing the Effects of Overcommitting YARN resources
cloud storage
Ad

Viewers also liked (20)

PPTX
ATAGTR2017 Differentiation using Testing Tools and Automation in the BFS COTS...
PPTX
ATAGTR2017 An Innovative Take on Versa Test
PPTX
ATAGTR2017 Machine Learning telepathy for Shift Right approach of testing
PPTX
ATAGTR2017 Performance Testing and Non-Functional Testing Strategy for Big Da...
PPTX
ATAGTR2017 Blockchain Based Testing
PPTX
ATAGTR2017 CDC Tests - Integration Tests cant be made simpler than this!
PPTX
ATAGTR2017 Cost-effective Security Testing Approaches for Web, Mobile & Enter...
PPTX
ATAGTR2017 Wearable App Testing
PPTX
ATAGTR2017 Detect Layout Bugs by Simulating Human Eye
PPT
ATAGTR2017 Bee-Hive approach for Big Data Testing [End to End Continuous Test...
PPTX
ATAGTR2017 Security Test Driven Development (STDD)
PPTX
ATAGTR2017 Be a User first, then a tester!
PPTX
ATAGTR2017 Test the REST
PPTX
ATAGTR2017 The way to recover the issue faced in IoT regression Testing
PPTX
ATAGTR2017 Performance Automation in Dev-Ops
PPTX
ATAGTR2017 Estimation in Agile Testing - Not a big deal rather it's Fun
PPTX
ATAGTR2017 Static and dynamic code analysis for mobile applications - Act ear...
PPTX
ATAGTR2017 Testing in DevOps Culture
PPTX
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
PPTX
Service Virtualization - Kalpna
ATAGTR2017 Differentiation using Testing Tools and Automation in the BFS COTS...
ATAGTR2017 An Innovative Take on Versa Test
ATAGTR2017 Machine Learning telepathy for Shift Right approach of testing
ATAGTR2017 Performance Testing and Non-Functional Testing Strategy for Big Da...
ATAGTR2017 Blockchain Based Testing
ATAGTR2017 CDC Tests - Integration Tests cant be made simpler than this!
ATAGTR2017 Cost-effective Security Testing Approaches for Web, Mobile & Enter...
ATAGTR2017 Wearable App Testing
ATAGTR2017 Detect Layout Bugs by Simulating Human Eye
ATAGTR2017 Bee-Hive approach for Big Data Testing [End to End Continuous Test...
ATAGTR2017 Security Test Driven Development (STDD)
ATAGTR2017 Be a User first, then a tester!
ATAGTR2017 Test the REST
ATAGTR2017 The way to recover the issue faced in IoT regression Testing
ATAGTR2017 Performance Automation in Dev-Ops
ATAGTR2017 Estimation in Agile Testing - Not a big deal rather it's Fun
ATAGTR2017 Static and dynamic code analysis for mobile applications - Act ear...
ATAGTR2017 Testing in DevOps Culture
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
Service Virtualization - Kalpna
Ad

Similar to ATAGTR2017 Batch Workload Modelling and Performance Optimization (20)

PPTX
Value add: Single User Performance Testing (http://managingperformancetesting...
PDF
Testing Tools Online Training.pdf
PDF
Agile Gurugram 2016 | Conference | Continuous Agile Testing @ Naukri | Meetu...
PDF
Business Case Calculator for DevOps Initiatives - Leading credit card service...
PPTX
Agile Teams Deserve Agile Testing
PPTX
Performance eng prakash.sahu
PPTX
Curiosity Software, Infuse and Kumoco present: The Democratisation of Testing
PPTX
ATAGTR2017 Performance Testing of Big Data Application
PDF
Designing and Running Performance Experiments
PDF
How to Deliver Winning Mobile Apps
PPTX
EXTENT-2016: Test Automation and Agile Testing
PDF
Agile Journey to agile
PPTX
ATAGTR2017 Artificial Intelligence in Software Testing – Demystified
PDF
Load Test Like a Pro
PPTX
Stop manual testing: Take your weekends back!
PDF
Agile Testing Transformation is as Easy as 1, 2, 3 by Michael Buening
PDF
Testing Tools Online Training.pdf
PPTX
The Tester's Role in Agile Planning
PDF
Agile Testing Process Analytics: From Data to Insightful Information
PDF
How Lean helped us put quality back at the heart of our Agile Process, by Ren...
Value add: Single User Performance Testing (http://managingperformancetesting...
Testing Tools Online Training.pdf
Agile Gurugram 2016 | Conference | Continuous Agile Testing @ Naukri | Meetu...
Business Case Calculator for DevOps Initiatives - Leading credit card service...
Agile Teams Deserve Agile Testing
Performance eng prakash.sahu
Curiosity Software, Infuse and Kumoco present: The Democratisation of Testing
ATAGTR2017 Performance Testing of Big Data Application
Designing and Running Performance Experiments
How to Deliver Winning Mobile Apps
EXTENT-2016: Test Automation and Agile Testing
Agile Journey to agile
ATAGTR2017 Artificial Intelligence in Software Testing – Demystified
Load Test Like a Pro
Stop manual testing: Take your weekends back!
Agile Testing Transformation is as Easy as 1, 2, 3 by Michael Buening
Testing Tools Online Training.pdf
The Tester's Role in Agile Planning
Agile Testing Process Analytics: From Data to Insightful Information
How Lean helped us put quality back at the heart of our Agile Process, by Ren...

More from Agile Testing Alliance (20)

PPTX
#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...
PDF
#Interactive Session by Ajay Balamurugadas, "Where Are The Real Testers In T...
PPTX
#Interactive Session by Jishnu Nambiar and Mayur Ovhal, "Monitoring Web Per...
PDF
#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...
PDF
#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...
PPTX
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
PPTX
#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...
PPTX
#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...
PDF
#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...
PPTX
#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...
PPTX
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
PPTX
#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...
PPTX
#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...
PDF
#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...
PPTX
#Interactive Session by Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...
PDF
#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...
PDF
#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.
PPTX
#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...
PDF
#Interactive Session by Aniket Diwakar Kadukar and Padimiti Vaidik Eswar Dat...
PPTX
#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...
#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...
#Interactive Session by Ajay Balamurugadas, "Where Are The Real Testers In T...
#Interactive Session by Jishnu Nambiar and Mayur Ovhal, "Monitoring Web Per...
#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...
#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...
#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...
#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...
#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...
#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...
#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...
#Interactive Session by Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...
#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...
#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.
#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...
#Interactive Session by Aniket Diwakar Kadukar and Padimiti Vaidik Eswar Dat...
#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...

Recently uploaded (20)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Electronic commerce courselecture one. Pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
KodekX | Application Modernization Development
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Electronic commerce courselecture one. Pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
KodekX | Application Modernization Development
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Network Security Unit 5.pdf for BCA BBA.
Reach Out and Touch Someone: Haptics and Empathic Computing
Building Integrated photovoltaic BIPV_UPV.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Spectral efficient network and resource selection model in 5G networks
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
20250228 LYD VKU AI Blended-Learning.pptx
A Presentation on Artificial Intelligence
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation_ Review paper, used for researhc scholars
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Dropbox Q2 2025 Financial Results & Investor Presentation
Digital-Transformation-Roadmap-for-Companies.pptx

ATAGTR2017 Batch Workload Modelling and Performance Optimization

  • 1. #ATAGTR2017 16th 17th March Batch Workload Modelling and Optimization Ashish Powar
  • 2. Agile Testing Alliance Global Testing Retreat 2017 Objective 2 This Presentation covers the following aspects Importance of Batch Performance tuning Commonly faced Issues due to over running batches Batch Workload Modelling Analyzing Test data requirements for batches Parameters to be monitored for batch optimization Real example of batch tuning & benefits to the client Workload to move to cloud
  • 3. Agile Testing Alliance Global Testing Retreat 2017 3 Importance of Batch Performance Tuning • Improper tuning of batch processes results in additional costs of hardware upgrades. • Inefficient batches will not make optimal use of available resources • Batches not meeting the SLA impact/delay the start of the online day • Impact to online transactions due to High CPU usage by inefficient batches running in parallel  Leading UK bank suffered major IT incident affecting the group overnight batch processing system which caused severe disruption to many of its IT systems.  The IT incident resulted in the Group being unable to update customer account balances process payments and participate fully in clearing with normal timeframes  For a leading insurance provider delay in reconciliation of data blocked the customers from renewing their insurance policies.  This incident caused lot of customers to lose credibility and the insurance provider had to deal with huge financial implications  One of the worlds largest stock Exchange brought down due to failure in the computer systems that feed stock prices to bank and brokerages  On further analysis it was identified that the incident was caused due to delay in the batch feed update
  • 4. Agile Testing Alliance Global Testing Retreat 2017 • Delay in start of business day thus impacting online processing • Data inconsistency issues - online services are dependent on previous night’s batch activity • Database locking – Impact to online response time due to table locks by batches running in parallel. • CPU/Memory – High CPU/memory usage due to batches running in parallel(above fig 2) 0 100 200 300 400 500 600 11:00 12:00 13:00 14:00 15:00 16:00 17:00 18:00 19:00 20:00 21:00 22:00 AverageResponseTime(Sec) Concurrent Sessions Impact on processing time due to DB lock Concurrent Sessions 0 20 40 60 80 100 10:00 10:30 11:00 11:30 12:00 12:30 13:00 13:30 14:00 14:30 15:00 15:30 16:00 16:30 17:00 17:30 AverageResponseTime(Sec) Concurrent Sessions CPU Utilization % CPU Batch+Online % CPU Online only 4 Commonly faced Issues due to over running batches
  • 5. Agile Testing Alliance Global Testing Retreat 2017 5 Batch Workload Modelling Identifying workload to move to Cloud Test data Analysis/Setup Batch Execution Monitoring & Optimization Areas of focus for batch Performance Optimization
  • 6. Agile Testing Alliance Global Testing Retreat 2017 Maximum number of batches were executed at 24:00 hrs i.e. 3 with 300 records processed 6 Batch Workload Modelling • Batches that run in isolation without any other activity in parallel • Batches initiated as part of online sync process and run in background • Batches that run in parallel with the online activity Workload modelling for batch testing should simulate below real-time production activities: 0 2 4 6 8 10 12 14 12.00AM 2.00AM 4.00AM 6.00AM 8.00AM 10.00AM 12.00AM 14.00PM 16.00PM 18.00PM 20.00PM 22.00PM 24.00PM NoofBatches/durationofbatchwindow Time Batches and Batch Window No of Batches Batch window 0 50 100 150 200 250 300 350 12.00AM 2.00AM 4.00AM 6.00AM 8.00AM 10.00AM 12.00AM 14.00PM 16.00PM 18.00PM 20.00PM 22.00PM 24.00PM Noofbatches/recordsprocessed Time Batches and Records Processed No of Batches Records processed
  • 7. Agile Testing Alliance Global Testing Retreat 2017 7 Workload to move to cloud DNS Process auto- scales based on jobs in the queue Load Balancer Queue Cloud Files App Servers • Unpredictable load or potential for growth • Partial Utilization • Easy Parallelization • Auto scale as per requirement Criteria to move workload to cloud Benefits of cloud • Help Organization to pay based on the need and usage
  • 8. Agile Testing Alliance Global Testing Retreat 2017 8 Analyzing Test data requirements for batches Batch Test data analyses involves the below • Reference data required for testing • Data to be copied on top of reference data • Input data for execution depending on the functionality • The composition of data (intersection of fields) is also important to simulate the actual production scenario • Need for historical data in DB for replication of production scenario
  • 9. Agile Testing Alliance Global Testing Retreat 2017 Job 2 Job3 Job4 Elapsed time 9 Parameters to be monitored for batch optimization • Elapsed Time - The total duration taken by the batch to complete • Throughput - Throughput is critical as batches process large volumes of data. • CPU/Memory Utilization - Needs to be within limit of batch job is expected to consume. • I/O Operations - Use of MOM, clustering and shared storage to spread the load • DB Connection Pool/Thread Pool - Both the parameters need to be monitored for optimal value for the batch • Slow running Queries – Identify slow running queries with respect to DB Batch Parameters Elapsed Time Throughput – I/o CPU/Memory Utilization Slow running Queries DB Connection Pool/Thread Pool
  • 10. Agile Testing Alliance Global Testing Retreat 2017 10 Validations that help to speed up batch processing • Pooling - Retrieve small sets of batch items for processing at a time • Locks - Monitor the locks acquired/sec • Write Log - Monitor the total log flush (WRITELOG value) • Index and Fragmentation - Indexing and defragmentation after the batch. • Disable constraints - Need to considered if data is correct • Triggers - Need to validate if needed during batch execution • Wait Statistics - Need to be monitored for slowing down of server
  • 11. Agile Testing Alliance Global Testing Retreat 2017 11 Real examples of batch tuning & benefits to the client • Optimization of the SQL queries • Use of Parallelism • Making efficient use of CPU resources • Use of quality metrics, like track job failures and test management tools As part of an assignment with a leading UK bank, the below optimization helped to reduced the batch elapsed time to meet the SLA: Gains due to above optimization: • Batch elapsed time reduced to 75 mins on a normal day (vs. 180 mins across similar period before) • Reduction in production systems running costs of around £245k per annum • Estimated reduction in development systems running costs of £ 122k per annum • Batch system utilization reduced to permissible limits during the overnight batch window
  • 12. Agile Testing Alliance Global Testing Retreat 2017 12 Conclusion • Inefficient batches lead to financial implications and impact to online activity • Proper workload modelling is key to success of batch testing • Proper analyses needs to be carried to identify workload to move to cloud • Scope for optimization can be identified based on the monitors setup during batch execution • Monitoring of the key DB parameters are critical for efficient batch optimization

Editor's Notes

  • #11: DB Connection Pool/Thread Pool – DB connection pool is the number of DB connections available for batch. Thread pool size too large can cause performance problems because if there are too many concurrent threads, task switching overhead becomes a serious bottleneck. Optimum value need to derived by multiple execution and benchmarking
  • #12: a.) Reduce the number of I/O Operations: The number of I/O operations (or the I/O size) of the application were set such that they don’t exceed the theoretical limit of the adapter/disk which helped to reduce the number of I/O operations and efficient execution. b.) Reduce Elapsed Time: Parallelism helped reduce elapsed time, thus helping in completing batch within the SLA. c.) Make efficient use of CPU Resources: Batches were optimized to use minimum CPU cycles and make efficient use of CPU close to 95% by splitting the batches in smaller logical pieces. d.) Use of quality metrics, like track job failures, auto restart and test management tools: Each job within the batch was monitored to bring in efficiency and reduce impact to overall batch execution time elapsed