You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/08/22 06:32:15 UTC
[shardingsphere-elasticjob] branch master updated: Fixed minor
details in Cloud documents. (#1399)
This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git
The following commit(s) were added to refs/heads/master by this push:
new 05fad30 Fixed minor details in Cloud documents. (#1399)
05fad30 is described below
commit 05fad3065fbb52c2d5a5892c451b4912ef90a49c
Author: 吴伟杰 <ro...@me.com>
AuthorDate: Sat Aug 22 14:32:03 2020 +0800
Fixed minor details in Cloud documents. (#1399)
- Fix hyperlink in English page directs to Chinese page.
- Replace Chinese colon ":" with English colon ":" in English documents.
- Some Chinese words are untranslated in English page.
---
.../elasticjob-cloud/configuration/_index.en.md | 52 +++++++++++-----------
.../elasticjob-cloud/operation/deploy-guide.en.md | 6 +--
2 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/docs/content/user-manual/elasticjob-cloud/configuration/_index.en.md b/docs/content/user-manual/elasticjob-cloud/configuration/_index.en.md
index aa961f5..47a78ca 100644
--- a/docs/content/user-manual/elasticjob-cloud/configuration/_index.en.md
+++ b/docs/content/user-manual/elasticjob-cloud/configuration/_index.en.md
@@ -11,13 +11,13 @@ ElasticJob-Cloud provides RESTful APIs such as application publishing and job re
### Publish application
-url:app
+url: app
-Method:POST
+Method: POST
Parameter type: application/json
-parameter list:
+parameter list:
| Property name | Type | Required or not | Default value | Description |
| ----------------------- |:------- |:--------------- |:-------------- |:------------------------------------------------------------ |
@@ -29,7 +29,7 @@ parameter list:
| appCacheEnable | boolean | No | true | Whether to read the application from the cache every time the job is executed |
| eventTraceSamplingCount | int | No | 0 (no sampling)| Number of resident job event sampling rate statistics |
-Detailed parameter description:
+Detailed parameter description:
**appName:**
@@ -41,7 +41,7 @@ A path that can be accessed through the network must be provided.
**bootstrapScript:**
-如:bin\start.sh
+Example: bin\start.sh
**appCacheEnable:**
@@ -51,7 +51,7 @@ Disabled, every time the task is executed, the application will be downloaded fr
To avoid excessive data volume, you can configure the sampling rate for frequently scheduled resident jobs, that is, every N times the job is executed, the job execution and tracking related data will be recorded.
-Example:
+Example:
```bash
curl -l -H "Content-type: application/json" -X POST -d '{"appName":"my_app","appURL":"http://app_host:8080/my-job.tar.gz","cpuCount":0.1,"memoryMB":64.0,"bootstrapScript":"bin/start.sh","appCacheEnable":true,"eventTraceSamplingCount":0}' http://elastic_job_cloud_host:8899/api/app
@@ -59,13 +59,13 @@ curl -l -H "Content-type: application/json" -X POST -d '{"appName":"my_app","app
### Modify application configuration
-url:app
+url: app
-Method:PUT
+Method: PUT
Parameter type: application/json
-parameter list:
+parameter list:
| Property name | Type | Required or not | Default value | Description |
| ----------------------- |:------- |:--------------- |:------------------ |:---------------------------------------------------- |
@@ -73,7 +73,7 @@ parameter list:
| appCacheEnable | boolean | Yes | true | Whether to read the application from the cache every time the job is executed |
| eventTraceSamplingCount | int | No | 0 (no sampling) | Number of resident job event sampling rate statistics|
-Example:
+Example:
```bash
curl -l -H "Content-type: application/json" -X PUT -d '{"appName":"my_app","appCacheEnable":true}' http://elastic_job_cloud_host:8899/api/app
@@ -83,13 +83,13 @@ curl -l -H "Content-type: application/json" -X PUT -d '{"appName":"my_app","appC
### Register job
-url:job/register
+url: job/register
-Method:POST
+Method: POST
Parameter type: application/json
-parameter list:
+parameter list:
| Property name | Type | Required or not | Default value | Description |
| ----------------------------- |:---------- |:---------------- |:-------------- |:-------------------------------------------------------------------------------------- |
@@ -113,7 +113,7 @@ Use the script type instantaneous job to upload the script directly to appURL wi
If there is only a single script file, no compression is required.
If it is a complex script application, you can still upload a tar package and support various common compression formats.
-Example:
+Example:
```bash
curl -l -H "Content-type: application/json" -X POST -d '{"appName":"my_app","cpuCount":0.1,"memoryMB":64.0,"jobExecutionType":"TRANSIENT","jobName":"my_job","cron":"0/5 * * * * ?","shardingTotalCount":5,"failover":true,"misfire":true}' http://elastic_job_cloud_host:8899/api/job/register
@@ -121,15 +121,15 @@ curl -l -H "Content-type: application/json" -X POST -d '{"appName":"my_app","cpu
### update job configuration
-url:job/update
+url: job/update
-Method:PUT
+Method: PUT
Parameter type: application/json
-Parameters:same as registration job
+Parameters: same as registration job
-Example:
+Example:
```bash
curl -l -H "Content-type: application/json" -X PUT -d '{"appName":"my_app","jobName":"my_job","cpuCount":0.1,"memoryMB":64.0,"jobExecutionType":"TRANSIENT","cron":"0/5 * * * * ?","shardingTotalCount":5,"failover":true,"misfire":true}' http://elastic_job_cloud_host:8899/api/job/update
@@ -137,15 +137,15 @@ curl -l -H "Content-type: application/json" -X PUT -d '{"appName":"my_app","jobN
### Deregister Job
-url:job/deregister
+url: job/deregister
-Method:DELETE
+Method: DELETE
Parameter type: application/json
-Parameters:Job name
+Parameters: Job name
-Example:
+Example:
```bash
curl -l -H "Content-type: application/json" -X DELETE -d 'my_job' http://elastic_job_cloud_host:8899/api/job/deregister
@@ -153,17 +153,17 @@ curl -l -H "Content-type: application/json" -X DELETE -d 'my_job' http://elastic
### Trigger job
-url:job/trigger
+url: job/trigger
-Method:POST
+Method: POST
Parameter type: application/json
-Parameters:Job name
+Parameters: Job name
Description: Event-driven, triggering jobs by calling API instead of timing. Currently only valid for transient operations.
-Example:
+Example:
```bash
curl -l -H "Content-type: application/json" -X POST -d 'my_job' http://elastic_job_cloud_host:8899/api/job/trigger
diff --git a/docs/content/user-manual/elasticjob-cloud/operation/deploy-guide.en.md b/docs/content/user-manual/elasticjob-cloud/operation/deploy-guide.en.md
index 1dd5ea9..dad116a 100755
--- a/docs/content/user-manual/elasticjob-cloud/operation/deploy-guide.en.md
+++ b/docs/content/user-manual/elasticjob-cloud/operation/deploy-guide.en.md
@@ -15,13 +15,13 @@ chapter = true
1. Ensure that ZooKeeper, Mesos Master/Agent and ElasticJob-Cloud-Scheduler have been started correctly.
2. Place the tar.gz file of the packaging job in a network accessible location, such as ftp or http. The `main` method in the packaged tar.gz file needs to call the `JobBootstrap.execute` method provided by ElasticJob-Cloud.
-3. Use curl command to call RESTful API to publish applications and register jobs. For details:[Configuration](/cn/user-manual/elasticjob-cloud/configuration)
+3. Use curl command to call RESTful API to publish applications and register jobs. For details: [Configuration](/en/user-manual/elasticjob-cloud/configuration)
## Scheduler configuration steps
Modify the `conf\elasticjob-cloud-scheduler.properties` to change the system configuration.
-Configuration description:
+Configuration description:
| Attribute Name | Required | Default | Description |
| ------------------------ |:------- |:------------------------- |:------------------------------------------------------------------------------------------ |
@@ -40,4 +40,4 @@ Configuration description:
***
-* Stop:No stop script is provided, you can directly use the kill command to terminate the process.
+* Stop: No stop script is provided, you can directly use the kill command to terminate the process.