blob: 37431809fe1a48a45b969b962a0f3cd3520462d4 [file] [log] [blame]
<!DOCTYPE html>
<html lang="cn" class="js csstransforms3d">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="generator" content="Hugo 0.70.0" />
<meta name="description" content="">
<meta name="buildDate" content="2020-10-19 15:08:02">
<link rel="shortcut icon" href="https://shardingsphere.apache.org/elasticjob/images/favicon.png" type="image/x-icon" />
<title>配置手册 :: ElasticJob</title>
<link href="https://shardingsphere.apache.org/elasticjob/current/css/nucleus.css?1603091282" rel="stylesheet">
<link href="https://shardingsphere.apache.org/elasticjob/current/css/font-awesome.min.css?1603091282" rel="stylesheet">
<link href="https://shardingsphere.apache.org/elasticjob/current/css/hybrid.css?1603091282" rel="stylesheet">
<link href="https://shardingsphere.apache.org/elasticjob/current/css/featherlight.min.css?1603091282" rel="stylesheet">
<link href="https://shardingsphere.apache.org/elasticjob/current/css/perfect-scrollbar.min.css?1603091282" rel="stylesheet">
<link href="https://shardingsphere.apache.org/elasticjob/current/css/auto-complete.css?1603091282" rel="stylesheet">
<link href="https://shardingsphere.apache.org/elasticjob/current/css/theme.css?1603091282" rel="stylesheet">
<link href="https://shardingsphere.apache.org/elasticjob/current/css/hugo-theme.css?1603091282" rel="stylesheet">
<link href="https://shardingsphere.apache.org/elasticjob/current/css/theme-black.css?1603091282" rel="stylesheet">
<script src="https://shardingsphere.apache.org/elasticjob/current/js/jquery-2.x.min.js?1603091282"></script>
<style type="text/css">
:root #header + #content > #left > #rlblock_left{
display:none !important;
}
</style>
</head>
<body class="" data-url="/cn/user-manual/elasticjob-lite/configuration/">
<nav id="sidebar" class="">
<div id="header-wrapper">
<div id="header">
<img src="https://shardingsphere.apache.org/elasticjob/current/img/elasticjob.png" />
</div>
</div>
<div class="highlightable">
<ul class="topics">
<li data-nav-id="/cn/overview/" title="概览" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/overview/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
</i>
<b>1. </b>概览
</a>
</li>
<li data-nav-id="/cn/quick-start/" title="快速入门" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/quick-start/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
<b>2. </b>快速入门
</a>
<ul>
<li data-nav-id="/cn/quick-start/elasticjob-lite/" title="ElasticJob-Lite" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/quick-start/elasticjob-lite/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
<b>2.1. </b>ElasticJob-Lite
</a>
</li>
<li data-nav-id="/cn/quick-start/elasticjob-cloud/" title="ElasticJob-Cloud" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/quick-start/elasticjob-cloud/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
<b>2.2. </b>ElasticJob-Cloud
</a>
</li>
</ul>
</li>
<li data-nav-id="/cn/features/" title="概念 &amp; 功能" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/features/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
<b>3. </b>概念 &amp; 功能
</a>
<ul>
<li data-nav-id="/cn/features/schedule-model/" title="调度模型" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/features/schedule-model/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
<b>3.1. </b>调度模型
</a>
</li>
<li data-nav-id="/cn/features/elastic/" title="弹性调度" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/features/elastic/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
<b>3.2. </b>弹性调度
</a>
</li>
<li data-nav-id="/cn/features/resource/" title="资源分配" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/features/resource/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
<b>3.3. </b>资源分配
</a>
</li>
<li data-nav-id="/cn/features/failover/" title="失效转移" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/features/failover/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
<b>3.4. </b>失效转移
</a>
</li>
<li data-nav-id="/cn/features/misfire/" title="错过任务重执行" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/features/misfire/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
<b>3.5. </b>错过任务重执行
</a>
</li>
<li data-nav-id="/cn/features/job-type/" title="作业开放生态" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/features/job-type/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
<b>3.6. </b>作业开放生态
</a>
</li>
</ul>
</li>
<li data-nav-id="/cn/user-manual/" title="用户手册" class="dd-item
parent
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
<b>4. </b>用户手册
</a>
<ul>
<li data-nav-id="/cn/user-manual/elasticjob-lite/" title="ElasticJob-Lite" class="dd-item
parent
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
<b>4.1. </b>ElasticJob-Lite
</a>
<ul>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/" title="使用手册" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
<b>4.1.1 </b>使用手册
</a>
<ul>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/job-api/" title="作业 API" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/job-api/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
作业 API
</a>
<ul>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/job-api/job-interface/" title="作业开发" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/job-api/job-interface/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
作业开发
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/job-api/java-api/" title="使用 Java API" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/job-api/java-api/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
使用 Java API
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/job-api/spring-boot-starter/" title="使用 Spring Boot Starter" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/job-api/spring-boot-starter/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
使用 Spring Boot Starter
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/job-api/spring-namespace/" title="使用 Spring 命名空间" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/job-api/spring-namespace/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
使用 Spring 命名空间
</a>
</li>
</ul>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/job-listener/" title="作业监听器" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/job-listener/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
作业监听器
</a>
<ul>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/job-listener/listener-interface/" title="监听器开发" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/job-listener/listener-interface/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
监听器开发
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/job-listener/java-api/" title="使用 Java API" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/job-listener/java-api/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
使用 Java API
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/job-listener/spring-namespace/" title="使用 Spring 命名空间" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/job-listener/spring-namespace/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
使用 Spring 命名空间
</a>
</li>
</ul>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/event-trace/" title="事件追踪" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/event-trace/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
事件追踪
</a>
<ul>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/event-trace/java-api/" title="使用 Java API" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/event-trace/java-api/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
使用 Java API
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/event-trace/spring-boot-starter/" title="使用 Spring Boot Starter" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/event-trace/spring-boot-starter/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
使用 Spring Boot Starter
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/event-trace/spring-namespace/" title="使用 Spring 命名空间" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/event-trace/spring-namespace/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
使用 Spring 命名空间
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/event-trace/table-structure/" title="表结构说明" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/event-trace/table-structure/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
表结构说明
</a>
</li>
</ul>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/usage/operation-api/" title="操作 API" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/operation-api/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
</i>
操作 API
</a>
</li>
</ul>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/configuration/" title="配置手册" class="dd-item
parent
active
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
<b>4.1.2 </b>配置手册
</a>
<ul>
<li data-nav-id="/cn/user-manual/elasticjob-lite/configuration/java-api/" title="Java API" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/java-api/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
Java API
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/configuration/spring-boot-starter/" title="Spring Boot Starter" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/spring-boot-starter/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
Spring Boot Starter
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/configuration/spring-namespace/" title="Spring 命名空间" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/spring-namespace/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
Spring 命名空间
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/configuration/built-in-strategy/" title="内置策略" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/built-in-strategy/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
内置策略
</a>
<ul>
<li data-nav-id="/cn/user-manual/elasticjob-lite/configuration/built-in-strategy/sharding/" title="作业分片策略" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/built-in-strategy/sharding/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
作业分片策略
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/configuration/built-in-strategy/thread-pool/" title="线程池策略" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/built-in-strategy/thread-pool/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
线程池策略
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/configuration/built-in-strategy/error-handler/" title="错误处理策略" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/built-in-strategy/error-handler/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
错误处理策略
</a>
</li>
</ul>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/configuration/props/" title="作业属性配置" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/props/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
作业属性配置
</a>
</li>
</ul>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/operation/" title="运维手册" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/operation/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
<b>4.1.3 </b>运维手册
</a>
<ul>
<li data-nav-id="/cn/user-manual/elasticjob-lite/operation/deploy-guide/" title="部署指南" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/operation/deploy-guide/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
部署指南
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/operation/dump/" title="导出作业信息" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/operation/dump/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
导出作业信息
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/operation/execution-monitor/" title="作业运行状态监控" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/operation/execution-monitor/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
作业运行状态监控
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-lite/operation/web-console/" title="运维平台" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/operation/web-console/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
运维平台
</a>
</li>
</ul>
</li>
</ul>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-cloud/" title="ElasticJob-Cloud" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-cloud/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
<b>4.2. </b>ElasticJob-Cloud
</a>
<ul>
<li data-nav-id="/cn/user-manual/elasticjob-cloud/usage/" title="使用手册" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-cloud/usage/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
<b>4.2.1. </b>使用手册
</a>
<ul>
<li data-nav-id="/cn/user-manual/elasticjob-cloud/usage/dev-guide/" title="开发指南" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-cloud/usage/dev-guide/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
开发指南
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-cloud/usage/local-executor/" title="本地运行模式" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-cloud/usage/local-executor/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
本地运行模式
</a>
</li>
</ul>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-cloud/configuration/" title="配置手册" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-cloud/configuration/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
</i>
<b>4.2.2. </b>配置手册
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-cloud/operation/" title="运维手册" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-cloud/operation/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
<b>4.2.3. </b>运维手册
</a>
<ul>
<li data-nav-id="/cn/user-manual/elasticjob-cloud/operation/deploy-guide/" title="部署指南" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-cloud/operation/deploy-guide/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
部署指南
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-cloud/operation/high-availability/" title="高可用" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-cloud/operation/high-availability/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
高可用
</a>
</li>
<li data-nav-id="/cn/user-manual/elasticjob-cloud/operation/web-console/" title="运维平台" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-cloud/operation/web-console/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
运维平台
</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li data-nav-id="/cn/dev-manual/" title="开发者手册" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/dev-manual/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg class="icon icon-down"
style="display: none;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M500.8 604.778667L267.306667 371.392l-45.226667 45.269333 278.741333 278.613334 278.485334-278.613334-45.248-45.248z" p-id="5376" ></path>
</svg>
<svg class="icon icon-right"
style="display: inline-block;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#777">
<path d="M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z" p-id="5605" ></path>
</svg>
</i>
<b>5. </b>开发者手册
</a>
<ul>
<li data-nav-id="/cn/dev-manual/sharding/" title="作业分片策略" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/dev-manual/sharding/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
<b>5.1. </b>作业分片策略
</a>
</li>
<li data-nav-id="/cn/dev-manual/thread-pool/" title="线程池策略" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/dev-manual/thread-pool/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
<b>5.2. </b>线程池策略
</a>
</li>
<li data-nav-id="/cn/dev-manual/error-handler/" title="错误处理策略" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/dev-manual/error-handler/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
<b>5.3. </b>错误处理策略
</a>
</li>
<li data-nav-id="/cn/dev-manual/job-class-provider/" title="作业类名称提供策略" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/dev-manual/job-class-provider/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
<b>5.4. </b>作业类名称提供策略
</a>
</li>
<li data-nav-id="/cn/dev-manual/roadmap/" title="线路规划" class="dd-item ">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/dev-manual/roadmap/">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
<b>5.5. </b>线路规划
</a>
</li>
</ul>
</li>
<li data-nav-id="/cn/downloads/" title="下载" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/downloads/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
</i>
<b>6. </b>下载
</a>
</li>
<li data-nav-id="/cn/powered-by/" title="采用公司" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/powered-by/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
</i>
<b>7. </b>采用公司
</a>
</li>
<li data-nav-id="/cn/faq/" title="FAQ" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/faq/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
</i>
<b>8. </b>FAQ
</a>
</li>
<li data-nav-id="/cn/blog/" title="博客" class="dd-item
">
<a href="https://shardingsphere.apache.org/elasticjob/current/cn/blog/">
<i class="collapse" style="display:inline; font-family:'courier';">
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5375" width="20" height="20"></svg>
</i>
<b>9. </b>博客
</a>
</li>
</ul>
<section id="prefooter">
<hr/>
<ul>
<li>
<a class="padding">
<i class="fa fa-fw fa-language"></i>
<div class="select-style">
<select id="select-language" onchange="location = this.value;">
<option id="en" value="/elasticjob/current/en/user-manual/elasticjob-lite/configuration/">English</option>
<option id="cn" value="/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/" selected>简体中文</option>
</select>
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="255px" height="255px" viewBox="0 0 255 255" style="enable-background:new 0 0 255 255;" xml:space="preserve">
<g>
<g id="arrow-drop-down">
<polygon points="0,63.75 127.5,191.25 255,63.75 " />
</g>
</g>
</svg>
</div>
</a>
</li>
</ul>
</section>
<hr />
<a class="padding" href="https://shardingsphere.apache.org/pdf/shardingsphere-elasticjob_docs_cn.pdf">
<i class="fa fa-fw fa-file-pdf-o" ></i>&nbsp;下载PDF文档&nbsp;&nbsp;
</a>
<section id="footer">
<p></p>
</section>
</div>
</nav>
<section id="body">
<div id="overlay"></div>
<div class="padding highlightable">
<div>
<div id="top-bar">
<div id="top-github-link">
<a class="github-link" title='Edit this page' href="https://github.com/apache/shardingsphere/tree/master/docs/document/content/user-manual/elasticjob-lite/configuration/_index.cn.md" target="blank">
<i class="fa fa-code-fork"></i>
<span id="top-github-link-text">Edit this page</span>
</a>
</div>
<div id="breadcrumbs" itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
<span id="sidebar-toggle-span">
<a href="#" id="sidebar-toggle" data-sidebar-toggle="">
<i class="fa fa-bars"></i>
</a>
</span>
<span class="links">
<a href='https://shardingsphere.apache.org/elasticjob/current/cn/'>ElasticJob</a> > <a href='https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/'>用户手册</a> > <a href='https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/'>ElasticJob-Lite</a> > 配置手册
</span>
</div>
</div>
</div>
<div id="chapter">
<div id="body-inner">
<nav id="TableOfContents">
<ul>
<li><a href="#注册中心配置项">注册中心配置项</a>
<ul>
<li><a href="#可配置属性">可配置属性</a></li>
<li><a href="#核心配置项说明">核心配置项说明</a></li>
</ul>
</li>
<li><a href="#作业配置项">作业配置项</a>
<ul>
<li><a href="#可配置属性-1">可配置属性</a></li>
<li><a href="#核心配置项说明-1">核心配置项说明</a></li>
</ul>
</li>
<li><a href="#作业监听器配置项">作业监听器配置项</a>
<ul>
<li><a href="#常规监听器配置项">常规监听器配置项</a></li>
<li><a href="#分布式监听器配置项">分布式监听器配置项</a></li>
</ul>
</li>
<li><a href="#事件追踪配置项">事件追踪配置项</a>
<ul>
<li><a href="#可配置属性-2">可配置属性</a></li>
</ul>
</li>
</ul>
</nav>
<p>通过配置可以快速清晰的理解 ElasticJob-Lite 所提供的功能。</p>
<p>本章节是 ElasticJob-Lite 的配置参考手册,需要时可当做字典查阅。</p>
<p>ElasticJob-Lite 提供了 3 种配置方式,用于不同的使用场景。</p>
<h2 id="注册中心配置项">注册中心配置项</h2>
<h3 id="可配置属性">可配置属性</h3>
<table>
<thead>
<tr>
<th>属性名</th>
<th align="left">类型</th>
<th align="left">缺省值</th>
<th align="left">描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>serverLists</td>
<td align="left">String</td>
<td align="left"></td>
<td align="left">连接 ZooKeeper 服务器的列表</td>
</tr>
<tr>
<td>namespace</td>
<td align="left">String</td>
<td align="left"></td>
<td align="left">ZooKeeper 的命名空间</td>
</tr>
<tr>
<td>baseSleepTimeMilliseconds</td>
<td align="left">int</td>
<td align="left">1000</td>
<td align="left">等待重试的间隔时间的初始毫秒数</td>
</tr>
<tr>
<td>maxSleepTimeMilliseconds</td>
<td align="left">String</td>
<td align="left">3000</td>
<td align="left">等待重试的间隔时间的最大毫秒数</td>
</tr>
<tr>
<td>maxRetries</td>
<td align="left">String</td>
<td align="left">3</td>
<td align="left">最大重试次数</td>
</tr>
<tr>
<td>sessionTimeoutMilliseconds</td>
<td align="left">boolean</td>
<td align="left">60000</td>
<td align="left">会话超时毫秒数</td>
</tr>
<tr>
<td>connectionTimeoutMilliseconds</td>
<td align="left">boolean</td>
<td align="left">15000</td>
<td align="left">连接超时毫秒数</td>
</tr>
<tr>
<td>digest</td>
<td align="left">String</td>
<td align="left">无需验证</td>
<td align="left">连接 ZooKeeper 的权限令牌</td>
</tr>
</tbody>
</table>
<h3 id="核心配置项说明">核心配置项说明</h3>
<p><strong>serverLists:</strong></p>
<p>包括 IP 地址和端口号,多个地址用逗号分隔,如: host1:2181,host2:2181</p>
<h2 id="作业配置项">作业配置项</h2>
<h3 id="可配置属性-1">可配置属性</h3>
<table>
<thead>
<tr>
<th>属性名</th>
<th align="left">类型</th>
<th align="left">缺省值</th>
<th align="left">描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>jobName</td>
<td align="left">String</td>
<td align="left"></td>
<td align="left">作业名称</td>
</tr>
<tr>
<td>shardingTotalCount</td>
<td align="left">int</td>
<td align="left"></td>
<td align="left">作业分片总数</td>
</tr>
<tr>
<td>cron</td>
<td align="left">String</td>
<td align="left"></td>
<td align="left">CRON 表达式,用于控制作业触发时间</td>
</tr>
<tr>
<td>shardingItemParameters</td>
<td align="left">String</td>
<td align="left"></td>
<td align="left">个性化分片参数</td>
</tr>
<tr>
<td>jobParameter</td>
<td align="left">String</td>
<td align="left"></td>
<td align="left">作业自定义参数</td>
</tr>
<tr>
<td>monitorExecution</td>
<td align="left">boolean</td>
<td align="left">true</td>
<td align="left">监控作业运行时状态</td>
</tr>
<tr>
<td>failover</td>
<td align="left">boolean</td>
<td align="left">false</td>
<td align="left">是否开启任务执行失效转移</td>
</tr>
<tr>
<td>misfire</td>
<td align="left">boolean</td>
<td align="left">true</td>
<td align="left">是否开启错过任务重新执行</td>
</tr>
<tr>
<td>maxTimeDiffSeconds</td>
<td align="left">int</td>
<td align="left">-1(不检查)</td>
<td align="left">最大允许的本机与注册中心的时间误差秒数</td>
</tr>
<tr>
<td>reconcileIntervalMinutes</td>
<td align="left">int</td>
<td align="left">10</td>
<td align="left">修复作业服务器不一致状态服务调度间隔分钟</td>
</tr>
<tr>
<td>jobShardingStrategyType</td>
<td align="left">String</td>
<td align="left">AVG_ALLOCATION</td>
<td align="left">作业分片策略类型</td>
</tr>
<tr>
<td>jobExecutorServiceHandlerType</td>
<td align="left">String</td>
<td align="left">CPU</td>
<td align="left">作业线程池处理策略</td>
</tr>
<tr>
<td>jobErrorHandlerType</td>
<td align="left">String</td>
<td align="left"></td>
<td align="left">作业错误处理策略</td>
</tr>
<tr>
<td>description</td>
<td align="left">String</td>
<td align="left"></td>
<td align="left">作业描述信息</td>
</tr>
<tr>
<td>props</td>
<td align="left">Properties</td>
<td align="left"></td>
<td align="left">作业属性配置信息</td>
</tr>
<tr>
<td>disabled</td>
<td align="left">boolean</td>
<td align="left">false</td>
<td align="left">作业是否禁止启动</td>
</tr>
<tr>
<td>overwrite</td>
<td align="left">boolean</td>
<td align="left">false</td>
<td align="left">本地配置是否可覆盖注册中心配置</td>
</tr>
</tbody>
</table>
<h3 id="核心配置项说明-1">核心配置项说明</h3>
<p><strong>shardingItemParameters:</strong></p>
<p>分片序列号和参数用等号分隔,多个键值对用逗号分隔。
分片序列号从0开始,不可大于或等于作业分片总数。
如:0=a,1=b,2=c</p>
<p><strong>jobParameter:</strong></p>
<p>可通过传递该参数为作业调度的业务方法传参,用于实现带参数的作业
例:每次获取的数据量、作业实例从数据库读取的主键等。</p>
<p><strong>monitorExecution:</strong></p>
<p>每次作业执行时间和间隔时间均非常短的情况,建议不监控作业运行时状态以提升效率。
因为是瞬时状态,所以无必要监控。请用户自行增加数据堆积监控。并且不能保证数据重复选取,应在作业中实现幂等性。
每次作业执行时间和间隔时间均较长的情况,建议监控作业运行时状态,可保证数据不会重复选取。</p>
<p><strong>failover:</strong></p>
<p>需要与 monitorExecution 同时开启才可生效。</p>
<p><strong>maxTimeDiffSeconds:</strong></p>
<p>如果时间误差超过配置秒数则作业启动时将抛异常。</p>
<p><strong>reconcileIntervalMinutes:</strong></p>
<p>在分布式的场景下由于网络、时钟等原因,可能导致 ZooKeeper 的数据与真实运行的作业产生不一致,这种不一致通过正向的校验无法完全避免。
需要另外启动一个线程定时校验注册中心数据与真实作业状态的一致性,即维持 ElasticJob 的最终一致性。</p>
<p>配置为小于 1 的任意值表示不执行修复。</p>
<p><strong>jobShardingStrategyType:</strong></p>
<p>详情请参见<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/built-in-strategy/sharding">内置分片策略列表</a></p>
<p><strong>jobExecutorServiceHandlerType:</strong></p>
<p>详情请参见<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/built-in-strategy/thread-pool">内置线程池策略列表</a></p>
<p><strong>jobErrorHandlerType:</strong></p>
<p>详情请参见<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/built-in-strategy/error-handler">内置错误处理策略列表</a></p>
<p><strong>props:</strong></p>
<p>详情请参见<a href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/props">作业属性配置列表</a></p>
<p><strong>disabled:</strong></p>
<p>可用于部署作业时,先禁止启动,部署结束后统一启动。</p>
<p><strong>overwrite:</strong></p>
<p>如果可覆盖,每次启动作业都以本地配置为准。</p>
<h2 id="作业监听器配置项">作业监听器配置项</h2>
<h3 id="常规监听器配置项">常规监听器配置项</h3>
<p>可配置属性:无</p>
<h3 id="分布式监听器配置项">分布式监听器配置项</h3>
<p>可配置属性</p>
<table>
<thead>
<tr>
<th>属性名</th>
<th align="left">类型</th>
<th align="left">缺省值</th>
<th align="left">描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>started-timeout-milliseconds</td>
<td align="left">long</td>
<td align="left">Long.MAX_VALUE</td>
<td align="left">最后一个作业执行前的执行方法的超时毫秒数</td>
</tr>
<tr>
<td>completed-timeout-milliseconds</td>
<td align="left">long</td>
<td align="left">Long.MAX_VALUE</td>
<td align="left">最后一个作业执行后的执行方法的超时毫秒数</td>
</tr>
</tbody>
</table>
<h2 id="事件追踪配置项">事件追踪配置项</h2>
<h3 id="可配置属性-2">可配置属性</h3>
<table>
<thead>
<tr>
<th>属性名</th>
<th align="left">类型</th>
<th align="left">缺省值</th>
<th align="left">描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>type</td>
<td align="left">String</td>
<td align="left"></td>
<td align="left">事件追踪存储适配器类型</td>
</tr>
<tr>
<td>storage</td>
<td align="left">泛型</td>
<td align="left"></td>
<td align="left">事件追踪存储适配器对象</td>
</tr>
</tbody>
</table>
<footer class=" footline" >
</footer>
</div>
</div>
</div>
<div id="navigation">
<a class="nav nav-prev" href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/usage/operation-api/" title="操作 API"> <i class="fa fa-chevron-left"></i></a>
<a class="nav nav-next" href="https://shardingsphere.apache.org/elasticjob/current/cn/user-manual/elasticjob-lite/configuration/java-api/" title="Java API" style="margin-right: 0px;"><i class="fa fa-chevron-right"></i></a>
</div>
</section>
<div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
<div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
</div>
<script src="https://shardingsphere.apache.org/elasticjob/current/js/clipboard.min.js?1603091282"></script>
<script src="https://shardingsphere.apache.org/elasticjob/current/js/perfect-scrollbar.min.js?1603091282"></script>
<script src="https://shardingsphere.apache.org/elasticjob/current/js/perfect-scrollbar.jquery.min.js?1603091282"></script>
<script src="https://shardingsphere.apache.org/elasticjob/current/js/jquery.sticky.js?1603091282"></script>
<script src="https://shardingsphere.apache.org/elasticjob/current/js/featherlight.min.js?1603091282"></script>
<script src="https://shardingsphere.apache.org/elasticjob/current/js/html5shiv-printshiv.min.js?1603091282"></script>
<script src="https://shardingsphere.apache.org/elasticjob/current/js/highlight.pack.js?1603091282"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="https://shardingsphere.apache.org/elasticjob/current/js/modernizr.custom.71422.js?1603091282"></script>
<script src="https://shardingsphere.apache.org/elasticjob/current/js/learn.js?1603091282"></script>
<script src="https://shardingsphere.apache.org/elasticjob/current/js/hugo-learn.js?1603091282"></script>
</body>
</html>