commit | 4bb3b2fbf0c7c3468f97d05f47d718212b6e8495 | [log] [tgz] |
---|---|---|
author | Liang Zhang <terrymanu@163.com> | Mon Jun 08 13:10:57 2020 +0800 |
committer | GitHub <noreply@github.com> | Mon Jun 08 13:10:57 2020 +0800 |
tree | 8f1bb95fa2c715a88fba110b27292796a62998bd | |
parent | 65d901ad081212ba05d53b4aae67e2a3064f6214 [diff] | |
parent | 92e2f187ea78ca4d101a4a5d0974e6e474ac1119 [diff] |
Merge pull request #12 from tuohai666/merge_docs Merge docs
Elastic-Job is a distributed scheduled job solution. Elastic-Job is composited from 2 independent sub projects: Elastic-Job-Lite and Elastic-Job-Cloud.
Elastic-Job-Cloud is a Mesos framework which use Mesos + Docker(todo) to manage and isolate resources and processes.
Elastic-Job-Lite and Elastic-Job-Cloud provide unified API. Developers only need code one time, then decide to deploy Lite or Cloud as you want.
<!-- import elastic-job cloud executor --> <dependency> <groupId>io.elasticjob</groupId> <artifactId>elastic-job-cloud-executor</artifactId> <version>${lasted.release.version}</version> </dependency>
Same with Elastic-Job-Lite
curl -l -H "Content-type: application/json" -X POST -d '{"appName":"yourAppName","appURL":"http://app_host:8080/foo-job.tar.gz","cpuCount":0.1,"memoryMB":64.0,"bootstrapScript":"bin/start.sh","appCacheEnable":true}' http://elastic_job_cloud_host:8899/api/app
curl -l -H "Content-type: application/json" -X POST -d '{"jobName":"foo_job","appName":"yourAppName","jobClass":"yourJobClass","jobType":"SIMPLE","jobExecutionType":"TRANSIENT","cron":"0/5 * * * * ?","shardingTotalCount":5,"cpuCount":0.1,"memoryMB":64.0,"failover":true,"misfire":true,"bootstrapScript":"bin/start.sh"}' http://elastic_job_cloud_host:8899/api/job/register