{"id":830,"date":"2023-08-24T18:25:33","date_gmt":"2023-08-24T10:25:33","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=830"},"modified":"2023-08-24T18:25:33","modified_gmt":"2023-08-24T10:25:33","slug":"%e5%a6%82%e4%bd%95%e9%85%8d%e7%bd%aeworkflow-agent","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=830","title":{"rendered":"\u5982\u4f55\u914d\u7f6eworkflow agent"},"content":{"rendered":"<h2>\u6982\u8981\u63cf\u8ff0<\/h2>\n<p>\u6709\u4e9b\u4efb\u52a1\u9700\u8981\u5728WorkFlow\u90e8\u7f72\u670d\u52a1\u5668\u4e4b\u5916\u7684\u670d\u52a1\u5668\u4e0a\u6267\u884c\uff0c\u6bd4\u5982\u76d1\u63a7\u67d0\u4e2a\u5f02\u5730\u670d\u52a1\u5668\u6587\u4ef6\u7684\u53d8\u5316\uff0c \u4ece\u5f02\u5730\u670d\u52a1\u5668\u4e0a\u4f20\u6587\u4ef6\u7b49\u3002\u6b64\u65f6\uff0c\u4f1a\u7528\u5230Agent Service\u3002 \u672c\u6587\u8be6\u7ec6\u63cf\u8ff0\u4e86\u5982\u4f55\u90e8\u7f72workflow agent<\/p>\n<h2>\u8be6\u7ec6\u8bf4\u660e<\/h2>\n<h3>workflow server\u7aef<\/h3>\n<h4>1 \u4e0b\u8f7dworkflow agent\u5b89\u88c5\u5305<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2019\/09\/workflow-agent1.png\" alt=\"\" \/><br \/>\n\u70b9\u51fb\u4e0b\u8f7d\u5b89\u88c5\u5305<br \/>\n<img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2019\/09\/workflow-agent2.png\" alt=\"\" \/><\/p>\n<h4>2 \u4e3a\u4e86\u8ba9client\u53ef\u4ee5\u88abserver\u7aef\u53d1\u73b0\uff0c\u9700\u8981\u786e\u8ba4server\u7aef\u7684\u76f8\u5e94\u914d\u7f6e<\/h4>\n<pre><code class=\"language-shell\">vim \/etc\/workflow1\/conf\/application.yml<\/code><\/pre>\n<p>\u786e\u8ba4\u4ee5\u4e0b\u90e8\u5206\uff0c\u5728agent\u7aef\u8981\u914d\u7f6e\u4e00\u4e00\u5bf9\u5e94<br \/>\n<img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2019\/09\/workflow-agent3.png\" alt=\"\" \/><\/p>\n<h3>workflow agent\u7aef<\/h3>\n<h4>3 \u4fdd\u8bc1\u8fd9\u53f0\u96c6\u7fa4\u5916\u7684\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u5df2\u7ecf\u90e8\u7f72\u4e86jdk1.8\u73af\u5883\uff0c\u5177\u4f53jdk1.8\u7684\u4e0b\u8f7d\u53ef\u4ee5\u53c2\u8003Oracle\u5b98\u7f51\u6307\u5bfc<\/h4>\n<h4>4 agent\u670d\u52a1\u5668\u4e0a\u5b89\u88c5mysql\u6570\u636e\u5e93<\/h4>\n<p>\u8bf7\u53c2\u8003mysql\u5b98\u7f51\u5b89\u88c5\u6307\u5bfc\u6b65\u9aa4<br \/>\n\uff08PS\uff1a\u4e0d\u8981\u4f7f\u7528mariadb\u53bb\u4f5c\u4e3amysql\u6570\u636e\u5e93\uff09<\/p>\n<h4>5 \u5b89\u88c5\u7b2c1\u6b65\u4e0b\u8f7d\u7684rpm\u5b89\u88c5\u5305<\/h4>\n<pre><code class=\"language-shell\">rpm -ivh workflow-agent-2.0.0-transwarp_6.0.2_1.noarch.rpm<\/code><\/pre>\n<h4>6 \u5b89\u88c5\u6210\u529f\u540e\uff0c\u914d\u7f6eagent\u7aef\u7684application.yml<\/h4>\n<pre><code class=\"language-shell\">vim \/usr\/local\/workflow-agent\/conf\/application.yml\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2019\/09\/workflow-agent4.png\" alt=\"\" \/><\/p>\n<p>\u6307\u5b9ahost\u548cport\uff1ahost\u4e3aagent\u6240\u5728\u670d\u52a1\u5668\u7684IP\u5730\u5740\uff0cport\u4e3a\u6307\u5b9a\u7aef\u53e3\u53f7<br \/>\nserver.port\u9700\u4e0eagent-registry.port\u4fdd\u6301\u4e00\u81f4<br \/>\nagent-registry.zkQuorum\u9700\u8981\u4e0eWorkFlow\u7684application.yml\u4e2d\u7684zkQuorum\u4fdd\u6301\u4e00\u81f4<br \/>\nagent-registry.zNodeBase\u9700\u8981\u4e0eWorkFlow\u7684application.yml\u4e2d\u7684zNodeBase\u4fdd\u6301\u4e00\u81f4<br \/>\nagent-registry.name\u4e0eagent-registry.description\u53ef\u81ea\u7531\u586b\u5199<\/p>\n<h4>7 \u914d\u7f6eagent\u7684db.properties<\/h4>\n<pre><code class=\"language-shell\">vim \/usr\/local\/workflow-agent\/conf\/db.properties<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2019\/09\/workflow-agent5.png\" alt=\"\" \/><\/p>\n<p>\u6570\u636e\u5e93\u8bbf\u95ee\u5730\u5740\uff1a\u586b\u5199\u5b9e\u9645\u4f7f\u7528\u7684\u6570\u636e\u5e93\u7684\u5730\u5740\u53ca\u7aef\u53e3\u53f7<br \/>\n\u6570\u636e\u5e93\u540d\u79f0\uff1a\u6307\u5b9aworkflow-agent\u4f7f\u7528\u7684mysql\u6570\u636e\u5e93\u540d\u79f0<br \/>\n\u7528\u6237\u540d\u3001\u5bc6\u7801\uff1aworkflow-agent\u4f7f\u7528\u6570\u636e\u5e93\u7684\u7528\u6237\u540d\u53ca\u5bc6\u7801<br \/>\nworkflow-agent\u9700\u8981\u4e00\u4e2a\u7a7a\u6570\u636e\u5e93\uff0c\u4f9d\u636e\u4e4b\u524d\u6307\u5b9a\u7684\u6570\u636e\u5e93\u540d\u79f0\u5efa\u7acb\u6570\u636e\u5e93\u5373\u53ef<\/p>\n<h4>8 \u5728mysql\u6570\u636e\u5e93\u91cc\u521b\u5efa\u4e0a\u8ff0\u6307\u5b9a\u7684\u6570\u636e\u5e93workflow-agent<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2019\/09\/workflow-agent6.png\" alt=\"\" \/><\/p>\n<h4>9 java\u73af\u5883\u7684\u914d\u7f6e\uff08\u82e5\u9ed8\u8ba4\u96c6\u7fa4\u4e3ajava1.8\u73af\u5883\u7684\u53ef\u4ee5\u5ffd\u7565\u6b64\u6b65\u9aa4\uff09<\/h4>\n<pre><code class=\"language-shell\">vim \/etc\/init.d\/workflow-agent<\/code><\/pre>\n<p>\u5728\u7b2c42\u884c\u5de6\u53f3\uff0c\u5c06$javaExec\u66ff\u6362\u4e3aagent\u6240\u5728\u670d\u52a1\u5668\u4e0ajdk1.8\u7684\u8def\u5f84\uff0c\u5982\uff1a\/usr\/local\/jdk1.8.0_181\/bin\/java<br \/>\n<img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2019\/09\/workflow-agent7.png\" alt=\"\" \/><\/p>\n<h4>10 \u542f\u52a8workflow agent\u670d\u52a1<\/h4>\n<pre><code class=\"language-shell\">systemctl start workflow-agent<\/code><\/pre>\n<h3>Server\u7aef<\/h3>\n<h4>11 \u8fdb\u5165workflow angent service\u754c\u9762<\/h4>\n<p>\u5c06agent\u6dfb\u52a0\u5230\u7ba1\u7406\u90e8\u5206<br \/>\n<img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2019\/09\/workflow-agent9.png\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2019\/09\/workflow-agent10.png\" alt=\"\" \/><\/p>\n<h4>12 \u5728\u811a\u672c\u4efb\u52a1\u8bbe\u7f6e\u4e2d\u6709agent\u914d\u7f6e\u9879\uff0c\u53ef\u9009\u62e9\u8be5\u811a\u672c\u4efb\u52a1\u8981\u4f7f\u7528\u7684agent\u670d\u52a1 \uff08\u76ee\u524d\u4ec5\u811a\u672c\u4efb\u52a1\u53ef\u4ee5\u4f7f\u7528agent\uff09<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2019\/09\/workflow-agent12.png\" alt=\"\" \/><\/p>\n<h4>13 \u5728agent\u670d\u52a1\u5668\u4e0a\uff0c\u4f1a\u81ea\u52a8\u6dfb\u52a0\u4e00\u4e2aworkflow\u7684\u5ba2\u6237\uff0c\u52a1\u5fc5\u4fdd\u8bc1\u8c03\u7528\u7684\u811a\u672c\u8def\u5f84\u5728agent\u670d\u52a1\u5668\u4e0a\u5bf9workflow\u7528\u6237\uff0c\u53ef\u8bfb\u53ef\u6267\u884c<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2019\/09\/workflow-agent13.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 \u6709\u4e9b\u4efb\u52a1\u9700\u8981\u5728WorkFlow\u90e8\u7f72\u670d\u52a1\u5668\u4e4b\u5916\u7684\u670d\u52a1\u5668\u4e0a\u6267\u884c\uff0c\u6bd4\u5982\u76d1\u63a7\u67d0\u4e2a\u5f02\u5730\u670d\u52a1\u5668\u6587\u4ef6\u7684\u53d8\u5316\uff0c \u4ece\u5f02 ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=830\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-830","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=830"}],"version-history":[{"count":3,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/830\/revisions"}],"predecessor-version":[{"id":10689,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/830\/revisions\/10689"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}