Introducing Batch, a new managed service for scheduling batch jobs at any scale

Today, we’re excited to announce the Preview release of our fully managed service, Batch, which provides easy access to Google Cloud’s computing power and scale.

Batch processing is as old as computing itself, with the term ‘batch' dating back to the punchcards used by early mainframes. Batch uses resources very efficiently and remains the preferred way of running jobs that don’t need much human interaction. Enterprise workloads very often include some batch processing elements. Batch jobs are especially prevalent in areas such as research, simulation, genomics, visual effects, fintech, manufacturing and EDA.

As enterprise customers turn to cloud to meet the need for more compute resources or to easily access the latest processors or GPUs, they bring their batch workloads with them. Batch is a general-purpose batch job service and the latest in a long list of products we’ve created over the years that process jobs to help enterprises migrate their workloads to the cloud. These services include Cloud Life Sciences (formerly Google Genomics), Dataflow, and Cloud Run Jobs.

What is Batch?

The Batch service handles several essential tasks. It manages the job queue, provisions and autoscales resources, runs jobs, executes subtasks, and deals with common errors — all automatically. You can access the service through the API, the gcloud command line tool, workflow engines, or via the easy to use UI in Cloud Console. In short, Batch allows developers, admins, scientists, researchers, and anyone else interested in batch computing to focus on their applications and results, handling everything in between.

Here are just a few examples of what Batch can do:

  • Run batch jobs as a service. Batch supports throughput-oriented, HPC, AI/ML, and data processing jobs.
  • Provision compute resources. Batch supports all CPU machine families including the newly released T2A Arm instances
  • Use accelerator-optimized resources. In collaboration with NVIDIA, Batch supports the use of NVIDIA GPUs when running demanding batch workloads such as ML training, HPC, and graphics simulation.
  • Support common job types including arrays of jobs and multi-node MPI jobs utilizing task parallelization.
  • Handle any executable. Bring your scripts or containerized workload.
  • Provide flexible provisioning models, including support for Spot VMs, which offer up to 91% savings versus regular compute instances, and custom machine types.
  • Simplify native integrations with Google Cloud services as well as popular workflow engines and tools such as Nextflow. The dsub command line tool will be supported imminently.

What customers and partners are saying

loco.jpg

“At Locomation, we are leading the way in autonomous trucking technology by making driving safer and more efficient. Google Cloud Batch made it easy for our engineers to quickly secure the compute resources needed to analyze large amounts of data. With Batch, we are able to reduce the time to unlock insights from large datasets by 80%, enabling us to meet our business objectives faster.” – David Hendi, Lead, Tools and Infrastructure at Locomation

nextflow.jpg

“Batch provides an elegant but powerful API with a straightforward execution model. The integration makes data handling a breeze. These and other technical advantages baked into Google Batch will directly benefit pipeline efficiency, throughput, and reliability. A benefit of working with Google through the pre-release is that we’ve had ample time to focus on testing. Validating the integration at scale with dozens of production pipelines has helped us quickly get out of the gate with a high-quality integration.”—Paolo Di Tommaso, Nextflow lead engineer and Seqera Labs co-founder

roi.jpg

“At Roivant Discovery, we leverage massive computational simulations to drive the discovery of novel drugs across small molecule modalities. Our scientists are required to operate at the cutting edge of quantum physics with speed and agility, at scale. Google Batch's unprecedented simplicity and flexibility will ensure we're always focused on innovation.”—Matt Maisak, COO at Roivant Discovery

Using Batch

Because it’s offered as a service, you don’t need to install or configure Batch in order to use it. But there are a few fundamental concepts you should be aware of.

  • Job – One execution of a piece of run-to-completion computation work.Jobs can be as simple as a single shell script or more complex multipart computations that can be run either in parallel or sequentially.
  • Tasks – The computations that make up a job. Tasks run on Compute Engine instances.
  • Array Job – Multiple tasks in a job that simultaneously execute the same executable (script or container)
  • Resources – What you need to run the job. Common resources include Compute Engine instances (VM instances that are created by Batch within your project to execute the tasks) and storage, such as Cloud Storage, NFS mounts, or additional disks that are used to read and write input and output.
SaleBestseller No. 1
HP 2022 Newest All-in-One Desktop, 21.5" FHD Display, Intel Celeron J4025 Processor, 16GB RAM, 512GB PCIe SSD, Webcam, HDMI, RJ-45, Wired Keyboard&Mouse, WiFi, Windows 11 Home, White
  • 【High Speed RAM And Enormous Space】16GB DDR4...
  • 【Processor】Intel Celeron J4025 processor (2...
  • 【Display】21.5" diagonal FHD VA ZBD anti-glare...
  • 【Tech Specs】2 x SuperSpeed USB Type-A 5Gbps...
  • 【Authorized KKE Mousepad】Include KKE Mousepad
SaleBestseller No. 2
ACEMAGIC Laptop Computer, 16GB DDR4 512GB SSD, 15.6 Inch Windows 11 Laptop with Intel Quad-Core N95(Up to 3.4GHz), Metal Shell, BT5.0, 5G WiFi, USB3.2, Type_C, Webcam, 38Wh Battery, 180° Open Angle
  • 【EFFICIENT PERFORMANCE】ACEMAGIC Laptop...
  • 【16GB RAM & 512GB ROM】Featuring 16GB of DDR4...
  • 【15.6" IMMERSIVE VISUALS】This 15.6 inch laptop...
  • 【NO LATENCY CONNECTION】The laptop computer...
  • 【ACEMAGIC CARE FOR YOU】 This slim laptop will...

With these concepts under our belts, let’s take a look at how to submit a simple job from the Google Cloud console (for more complex jobs, you should use the Batch API or the command line). This job will output the text ‘helloworld’ and the task index within the job before sleeping for 60 seconds. The script will execute 100 times to account for the number of tasks and will run at most 20 tasks in parallel.

create batch job.jpg

The hello-world job created above was populated in the Job List page and the status progressed from Queued to Scheduled to Succeeded.

job list.jpg

You can drill down into the job details to display additional information as shown below.

hello world.jpg

Getting started

If you’re looking for an easier way to handle your batch processing jobs, Batch provides the simplicity to go from an executable to results within a few steps. Batch is currently available in four Google Cloud regions: Iowa (us-central1), South Carolina (us-east1), Oregon (us-west1), and Finland (europe-north1). There is no additional charge for using the Batch service. You only pay for the resources used to run your batch job. Head to the Cloud Console to start deploying your batch jobs today.

New
HP Envy Desktop, Intel Core i7-13700, 64GB RAM, 4TB SSD, SD Card Reader, HDMI, VGA, RJ45, Wired Keyboard & Mouse, Wi-Fi 6, Windows 11 Home, Black
  • [High Speed RAM And Enormous Space] 64GB...
  • [Processor] Intel Core i7-13700 (16 Cores, 24...
  • [Tech Specs] 1 x USB 3.2 Type-C, 4 x USB 3.2...
  • [Operating System] Windows 11 Home - Beautiful,...
New
XZKKCD Archangel 3.0 Gaming Computer PC Desktop - Ryzen 5 3600 6-Core 3.6GHz, RTX 3060 12GB, 1TB SSD, 16GB DDR4 3200, RGB Fans, AC WiFi, 600W Gold PSU, Windows 11 Home 64-bit, White
  • AMD Ryzen 5 3600 6-Core 3.6 GHz (4.2 GHz Turbo)...
  • GeForce RTX 3060 12GB GDDR6 Graphics Card (Brand...
  • 802.11AC | No Bloatware | Graphic output options...
  • Heatsink & 3 x RGB Fans | Powered by 80 Plus Gold...
  • 1 Year Warranty on Parts and Labor | Lifetime Free...
New
jumper Laptop, Laptop Computer with 24GB LPDDR4 512GB SSD, Intel Celeron N5095 CPU(Up to 2.9GHz), 17.3" FHD IPS 1920x1200 Display, 38WH Battery, Intel UHD Graphics, USB3.0 * 3, BT5.0, Front 2.0MP.
  • 【Excellent performance】 Laptop is equipped...
  • 【Do Your Tasks Easily】 Laptop computer comes...
  • 【Amazing Visuals】 The 17.3-inch laptop...
  • 【Poweful Cooling System】Laptops are equipped...
  • 【External Ports Design】Notebook computer comes...

To learn more about Batch, check out the product page and these resources below to help you onboard:

If you have questions, reach out to [email protected] or explore the Batch category within the Cloud Forums to engage with fellow community members!

Original Post>