| <?xml version="1.0" encoding="utf-8" standalone="yes"?> |
| <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> |
| <channel> |
| <title>Tracing on ElasticJob</title> |
| <link>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-lite/usage/tracing/</link> |
| <description>Recent content in Tracing on ElasticJob</description> |
| <generator>Hugo -- gohugo.io</generator> |
| <language>en-us</language> |
| |
| <atom:link href="https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-lite/usage/tracing/index.xml" rel="self" type="application/rss+xml" /> |
| |
| |
| <item> |
| <title>Use Java API</title> |
| <link>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-lite/usage/tracing/java-api/</link> |
| <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate> |
| |
| <guid>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-lite/usage/tracing/java-api/</guid> |
| <description>ElasticJob-Lite currently provides TracingConfiguration based on database in the configuration. Developers can also extend it through SPI. |
| // init DataSource DataSource dataSource = ...; // define tracing configuration based on relation database TracingConfiguration tracingConfig = new TracingConfiguration&lt;&gt;(&#34;RDB&#34;, dataSource); // init registry center CoordinatorRegistryCenter regCenter = ...; // init job configuration JobConfiguration jobConfig = ...; jobConfig.getExtraConfigurations().add(tracingConfig); new ScheduleJobBootstrap(regCenter, jobConfig).schedule(); </description> |
| </item> |
| |
| <item> |
| <title>Use Spring Boot Starter</title> |
| <link>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-lite/usage/tracing/spring-boot-starter/</link> |
| <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate> |
| |
| <guid>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-lite/usage/tracing/spring-boot-starter/</guid> |
| <description>ElasticJob-Lite Spring Boot Starter has already integrated TracingConfiguration configuration. What developers need to do is register a bean of DataSource into the Spring IoC Container and set the type of data source. Then the Starter will create an instance of TracingConfiguration and register it into the container. |
| Import Maven Dependency Import spring-boot-starter-jdbc for DataSource register or create a bean of DataSource manually. |
| &lt;dependency&gt; &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt; &lt;version&gt;${springboot.version}&lt;/version&gt; &lt;/dependency&gt; Configuration spring: datasource: url: jdbc:h2:mem:job_event_storage driver-class-name: org.</description> |
| </item> |
| |
| <item> |
| <title>Use Spring Namespace</title> |
| <link>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-lite/usage/tracing/spring-namespace/</link> |
| <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate> |
| |
| <guid>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-lite/usage/tracing/spring-namespace/</guid> |
| <description>Import Maven Dependency &lt;dependency&gt; &lt;groupId&gt;org.apache.shardingsphere.elasticjob&lt;/groupId&gt; &lt;artifactId&gt;elasticjob-lite-spring-namespace&lt;/artifactId&gt; &lt;version&gt;${elasticjob.latest.version}&lt;/version&gt; &lt;/dependency&gt; Configuration &lt;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&gt; &lt;beans xmlns=&#34;http://www.springframework.org/schema/beans&#34; xmlns:xsi=&#34;http://www.w3.org/2001/XMLSchema-instance&#34; xmlns:elasticjob=&#34;http://shardingsphere.apache.org/schema/elasticjob&#34; xsi:schemaLocation=&#34;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://shardingsphere.apache.org/schema/elasticjob http://shardingsphere.apache.org/schema/elasticjob/elasticjob.xsd &#34;&gt; &lt;!-- Configure registry center for job --&gt; &lt;elasticjob:zookeeper id=&#34;regCenter&#34; server-lists=&#34;yourhost:2181&#34; namespace=&#34;my-job&#34; base-sleep-time-milliseconds=&#34;1000&#34; max-sleep-time-milliseconds=&#34;3000&#34; max-retries=&#34;3&#34; /&gt; &lt;!-- Configure job java bean --&gt; &lt;bean id=&#34;myJob&#34; class=&#34;xxx.MyJob&#34; /&gt; &lt;!-- Configure DataSource --&gt; &lt;bean id=&#34;tracingDataSource&#34; class=&#34;org.apache.commons.dbcp.BasicDataSource&#34; destroy-method=&#34;close&#34;&gt; &lt;property name=&#34;driverClassName&#34; value=&#34;${driver.class.name}&#34; /&gt; &lt;property name=&#34;url&#34; value=&#34;${url}&#34; /&gt; &lt;property name=&#34;username&#34; value=&#34;${username}&#34; /&gt; &lt;property name=&#34;password&#34; value=&#34;${password}&#34; /&gt; &lt;/bean&gt; &lt;!</description> |
| </item> |
| |
| <item> |
| <title>Table Structure</title> |
| <link>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-lite/usage/tracing/table-structure/</link> |
| <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate> |
| |
| <guid>https://shardingsphere.apache.org/elasticjob/current/en/user-manual/elasticjob-lite/usage/tracing/table-structure/</guid> |
| <description>The database which is the value of the event tracing property event_trace_rdb_url will automatically creates two tables JOB_EXECUTION_LOG and JOB_STATUS_TRACE_LOG and several indexes. |
| JOB_EXECUTION_LOG Columns Column name Column type Required Describe id VARCHAR(40) Yes Primary key job_name VARCHAR(100) Yes Job name task_id VARCHAR(1000) Yes Task name, create new tasks every time the job runs. hostname VARCHAR(255) Yes Hostname ip VARCHAR(50) Yes IP sharding_item INT Yes Sharding item execution_source VARCHAR(20) Yes Source of job execution.</description> |
| </item> |
| |
| </channel> |
| </rss> |