The present application proposes a method and device for
processing small data volume jobs based on a
big data engine, which method includes the following steps: S1, obtaining a
data file to be processed, and determining whether the
data file to be processed is a
small data volume job. If so, executing step S2; S2, determining whether the
resource pool has an idle runtime environment. If so, the
business code is uniformly encapsulated, and the runtime environment interprets and executes the encapsulated code. If not, executing step S3; S3, determining whether the
resource pool has reached the resource capacity upper limit. If so, the
data file is processed and enters the
job queue to wait. If not, a runtime environment is created and put into the
resource pool, and the
business code is uniformly encapsulated, and the runtime environment interprets and executes the encapsulated code. S4, detecting whether the
idle time of the runtime environment in the resource
pool exceeds a preset threshold. If so, the runtime resources are released.