{"id":11105,"date":"2023-11-17T11:05:17","date_gmt":"2023-11-17T03:05:17","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=11105"},"modified":"2024-05-23T17:09:50","modified_gmt":"2024-05-23T09:09:50","slug":"workflow-studio-3-1-1%e5%8f%8a%e4%bb%a5%e4%b8%8a-%e7%89%88%e6%9c%acexecutor%e7%bb%84%e4%bb%b6%ef%bc%88agent%ef%bc%89rpm%e5%8c%85%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=11105","title":{"rendered":"Workflow Studio 3.1.1\u53ca\u4ee5\u4e0a \u7248\u672cexecutor\u7ec4\u4ef6\uff08agent\uff09RPM\u5305\u5b89\u88c5\u914d\u7f6e\u6307\u5357"},"content":{"rendered":"<h3>\u6982\u8981\u63cf\u8ff0<\/h3>\n<p>\u5ba2\u6237\u5728\u4f7f\u7528\u5404\u79cd\u4ee3\u7801\u6587\u4ef6\u8fd0\u884cworkflow\u7684\u65f6\u5019\uff0c\u5185\u90e8pod\u65e0\u6cd5\u6ee1\u8db3\u5ba2\u6237\u8fd0\u884c\u4ee3\u7801\u7684\u73af\u5883\u9700\u6c42\uff0c\u8fd9\u4e2a\u65f6\u5019\u5728\u5ba2\u6237\u5c06\u914d\u7f6e\u597d\u7684\u4ee3\u7801\u73af\u5883\u4e0a\u5b89\u88c5workflow\u7684\u5916\u90e8executor\uff0c\u901a\u8fc7executor\u6765\u5728\u6307\u5b9a\u7684\u73af\u5883\u4e0b\u8fd0\u884c\u6307\u5b9a\u7684\u4ee3\u7801\u3002\u672c\u6587\u5c31\u5982\u4f55\u5b89\u88c5\u53ca\u914d\u7f6e\u5916\u90e8executor\u5ba2\u6237\u7aef\u8fdb\u884c\u4e00\u4e2a\u8bf4\u660e<\/p>\n<h3>\u8be6\u7ec6\u8bf4\u660e<\/h3>\n<h4>1.\u4e0b\u8f7dRPM\u5305<\/h4>\n<p>\u4e0b\u8f7dworkflow-executor RPM\u5b89\u88c5\u5305\uff0c\u53ef\u4ee5\u4ece\u4e0b\u56fe\u6240\u793a\u201c\u6267\u884c\u5668\u7ba1\u7406\u201d\u9875\u9762\u53f3\u4e0a\u89d2\u70b9\u51fb\u201c\u4e0b\u8f7d\u6267\u884c\u5668rpm\u5b89\u88c5\u5305\u201d<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700116337642.png\" alt=\"file\" \/><\/p>\n<p>\u4e0a\u4f20RPM\u5b89\u88c5\u5305\u5230\u5ba2\u6237\u6307\u5b9a\u7684Linux\u670d\u52a1\u5668\uff0cRPM\u5b89\u88c5\u5305\u7684\u4e00\u822c\u9ed8\u8ba4\u4e0b\u8f7d\u6587\u4ef6\u540d\u4e3aworkflow-executor-3.1.1.noarch.rpm\uff0c\u53ef\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u884c\u8fdb\u884c\u5b89\u88c5\uff0c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u4f1a\u521b\u5efa\u540d\u4e3aworkflow\u7684\u7528\u6237<\/p>\n<pre><code class=\"language-shell\">rpm -ivh workflow-executor-3.1.1.noarch.rpm<\/code><\/pre>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9ed8\u8ba4\u670d\u52a1\u7a0b\u5e8f\u5b89\u88c5\u76ee\u5f55\u4e3a\/usr\/local\/workflow-executor\uff0c\u8be5\u76ee\u5f55\u4e0b\u5305\u542b3\u4e2a\u5b50\u76ee\u5f55\u5206\u522b\u4e3a\/bin\u3001\/lib\u3001\/conf\uff0c\u5176\u4e2d\/bin\u5305\u542b\u670d\u52a1\u542f\u505c\u7684\u64cd\u4f5c\u811a\u672c\uff0c\/lib\u5305\u542bworkflow-executor\u7ec4\u4ef6\u7684jar\u5305\uff0c\/conf\u5305\u542b\u7ec4\u4ef6\u8fd0\u884c\u6240\u9700\u914d\u7f6e\u6587\u4ef6<\/p>\n<h4>2.\u4fee\u6539application.yml\u914d\u7f6e\u6587\u4ef6<\/h4>\n<p>\u670d\u52a1\u542f\u52a8\u524d\uff0c\u9700\u8981\u5bf9\u8def\u5f84\u4e3a\/usr\/local\/workflow-executor\/conf\/application.yml\u7684\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u4fee\u6539\uff0c\u4fee\u6539\u90e8\u5206\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n<p>a.\u4fee\u6539eureka\u9879defaultZone\u53c2\u6570\uff0c\u4fee\u6539\u5730\u5740\u4e00\u822c\u4e3aFoundation-web\u7684\u5730\u5740\uff0c\u9ed8\u8ba4\u7aef\u53e3\u662f28190,\u5177\u4f53\u7aef\u53e3\u53f7\u53ef\u4ee5\u5728manager\u754c\u9762\u67e5\u8be2<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700116874069.png\" alt=\"file\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700116663460.png\" alt=\"file\" \/><\/p>\n<p>b.\u4fee\u6539foundation.log.audit.user-server.host\u914d\u7f6e\uff0c\u4fee\u6539\u4e3afoundation-web\u7684\u8bbf\u95ee\u5730\u5740<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700117038933.png\" alt=\"file\" \/><\/p>\n<p>c.\u4fee\u6539\u65e5\u5fd7\u914d\u7f6e<\/p>\n<p>\u4fee\u6539log.dir\u914d\u7f6e\uff0c\u8868\u793a\u65e5\u5fd7\u5b58\u653e\u7684\u5177\u4f53\u7684\u8def\u5f84\uff0c<br \/>\n\u5907\u6ce8\uff1a\u5982\u679c\u5f53\u524d\u73af\u5883\u6709\u90e8\u7f72\u7684workflow-executor\u670d\u52a1\uff0c\u4e0d\u8981\u628a\u8be5\u8def\u5f84\u8bbe\u7f6e\u6210\/var\/log\/workflow1\/workflow-executor\uff08\u5373\u901a\u8fc7manager\u76f4\u63a5\u90e8\u7f72\u7684executor\u7684\u65e5\u5fd7\u8def\u5f84\uff09\uff0c\u5efa\u8bae\u4e0e\u539f\u6709\u8def\u5f84\u533a\u5206\u3002<br \/>\n\u65e5\u5fd7\u6587\u4ef6\u548c\u6267\u884c\u65e5\u5fd7\u76f8\u5173\u7684\u65b0\u5efa\u7684\u6587\u4ef6\u5939\u5747\u8fdb\u884cchmod 777\u8d4b\u6743\u64cd\u4f5c\uff08\u6216\u5c06\u6587\u4ef6\u5939\u6240\u6709\u8005\u6539\u4e3aworkflow\u7528\u6237\uff09\uff0c\u8be5\u8def\u5f84\u53ea\u6d89\u53ca\u5199\u5165\u65e5\u5fd7\u4fe1\u606f\u7b49\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700117339838.png\" alt=\"file\" \/><\/p>\n<p>d.sql\u4efb\u52a1\u7684\u8fd0\u884c\u9a71\u52a8\u51c6\u5907<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700117430379.png\" alt=\"file\" \/><\/p>\n<p>e.\u8fd0\u884c\u73af\u5883<\/p>\n<p>\u5f53\u6267\u884cagent\u4efb\u52a1\u4f5c\u4e3a\u79bb\u7ebf\u4efb\u52a1\uff08java,python\u7b49\uff09\u7684\u6267\u884c\u5668\u65f6\uff0c\u9700\u8981\u4e00\u4e2a\u76ee\u5f55\u7528\u4e8e\u4fdd\u5b58\u4e0a\u4f20\u7684\u6587\u4ef6\uff0c\u9ed8\u8ba4\u6587\u4ef6\u8def\u5f84\u4e3a\/var\/lib\/workflow-executor\/task\/file\u3002\u82e5\u8981\u66f4\u6362\u5176\u4ed6\u8def\u5f84\uff0c\u8bf7\u63d0\u524d\u5904\u7406\u76ee\u5f55\u6743\u9650\u3002<br \/>\n\u6267\u884c\u5668\u6267\u884c\u73af\u5883\u7684\u914d\u7f6e\uff0c\u8bf7\u5230\u201c\u6267\u884c\u5668\u7ba1\u7406\u201d-\u201c\u8fd0\u884c\u73af\u5883\u8def\u5f84\u201d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700117536798.png\" alt=\"file\" \/><\/p>\n<p>f.\u6267\u884c\u76ee\u5f55<br \/>\n\u4efb\u52a1\u6267\u884c\u65f6\u4f7f\u7528\u7684\u4e34\u65f6\u76ee\u5f55\uff0c\u9ed8\u8ba4\u4e3a\/tmp\/workflow-executor\uff0c\u82e5\u6709\u9700\u8981\u53ef\u81ea\u884c\u8c03\u6574\uff0c\u4fee\u6539\u540e\u9700\u8981\u91cd\u542fexecutor\u3002\u8bf7\u4fdd\u8bc1executor\u542f\u52a8\u7528\u6237\u5bf9\u914d\u7f6e\u7684\u8def\u5f84\u53ca\u5176\u4e2d\u6587\u4ef6\u6709\u5b8c\u6574\u6743\u9650\u3002\u540c\u65f6\uff0c\u8be5\u76ee\u5f55\u7684\u6743\u9650\u9700\u8981\u4fdd\u6301\u4e3aworkflow:workflow(\u5982\u679c\u662froot:root\u53ef\u80fd\u4f1a\u62a5\u9519)<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700117588011.png\" alt=\"file\" \/><\/p>\n<p>g.\u542f\u52a8\u7528\u6237<\/p>\n<p>workflow executor\u542f\u52a8\u7528\u6237\uff0c\u9ed8\u8ba4\u4e3aworkflow\uff0c\u5982\u679c\u9700\u8981\u8c03\u6574\uff0c\u9700\u8981\u4fee\u6539\u542f\u52a8\u811a\u672c\u3002\u4fee\u6539\u540e\u8bf7\u91cd\u65b0\u542f\u52a8<br \/>\n\u542f\u52a8\u811a\u672c\u8def\u5f84\uff1a\/usr\/local\/workflow-executor\/bin\/workflow-executor<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700117694001.png\" alt=\"file\" \/><\/p>\n<h4>3.\u8de8\u96c6\u7fa4hosts\u914d\u7f6e<\/h4>\n<p>1\uff09\u628a\u975edocker\u90e8\u7f72\u7684executor\u6240\u5728\u8282\u70b9\u7684ip hostname\u6620\u5c04\u4fe1\u606f\u66f4\u65b0\u5728workflow-server\u3001workflow-scheduler\u6240\u5728\u8282\u70b9\/etc\/hosts\u3001\/etc\/transwarp\/conf\/hosts\u4e2d<br \/>\n\u5e76\u91cd\u542fworkflow-server\u3001workflow-scheduler\u4e24\u4e2a\u670d\u52a1\u7684pod<\/p>\n<p>2\uff09\u628aworkflow-scheduler\u6240\u5728\u8282\u70b9\u7684IP HOSTNAME\u6620\u5c04\u5173\u7cfb\uff0c\u66f4\u65b0\u5728\u8fdc\u7a0bexecutor\u6240\u5728\u8282\u70b9\u7684\/etc\/hosts<\/p>\n<h4>4.\u542f\u52a8\u670d\u52a1<\/h4>\n<p>\u5b8c\u540e\u914d\u7f6e\u540e\uff0c\u8fdb\u884c\u542f\u52a8\u670d\u52a1<br \/>\nservice workflow-executor start \u6216\/etc\/init.d\/workflow-executor start<br \/>\n\u65e5\u5fd7\u6253\u5370\u5728\/usr\/local\/workflow-executor\/nohup.out<br \/>\n\u5907\u6ce8\uff1a\u5982\u82e5\u540e\u7eed\u518d\u6b21\u4fee\u6539\u914d\u7f6e\uff0c\u90fd\u5fc5\u987b\u91cd\u65b0\u542f\u52a8\u670d\u52a1<\/p>\n<h4>5.\u9875\u9762\u9a8c\u8bc1<\/h4>\n<p>\u670d\u52a1\u542f\u52a8\u6210\u529f\u540e\u9875\u9762\u5373\u53ef\u770b\u5230\u751f\u6210\u4e86\u65b0\u7684\u6267\u884c\u5668<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700118364553.png\" alt=\"file\" \/><\/p>\n<p>\u7528\u8fd9\u4e2a\u6267\u884c\u5668\u6267\u884c\u4e00\u4e2a\u811a\u672c\u4efb\u52a1\uff0c\u53ef\u4ee5\u6267\u884c\u6210\u529f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700118542977.png\" alt=\"file\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700118563770.png\" alt=\"file\" \/><\/p>\n<p>\u8fd0\u884c\u6210\u529f\u5373\u4ee3\u8868\u96c6\u7fa4\u5916workflow-executor\u5b89\u88c5\u6210\u529f<\/p>\n<h3>\u6ce8\u610f\u4e8b\u9879<\/h3>\n<h4>\u8ba4\u8bc1\u95ee\u9898<\/h4>\n<p>\u542f\u52a8\u670d\u52a1\u65f6\u53ef\u80fd\u4f1a\u51fa\u73b0\u5982\u4e0b\u62a5\u9519\uff0c\u4e00\u822c\u662f\u56e0\u4e3a\u96c6\u7fa4\u5916\u7684\u670d\u52a1\u5668\u8ba4\u8bc1\u6587\u4ef6\u4e0e\u96c6\u7fa4\u5185\u4e0d\u4e00\u81f4\u5bfc\u81f4\u7684<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700118685978.png\" alt=\"file\" \/><\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\u4ee5\u4e0b\u4e8c\u9009\u4e00\uff1a<br \/>\n(1)\u4fe1\u4efbeureka\u670d\u52a1\u4f7f\u7528\u7684https\u8bc1\u4e66\u3002<br \/>\na.\u8bbf\u95eeexecutor\u9700\u8981\u6ce8\u518c\u5230\u7684foundation user server\u5bb9\u5668\uff0c\u83b7\u53d6\u6587\u4ef6\uff1a\/srv\/oauth2server\/ca.crt<br \/>\nb.\u5728executor\u90e8\u7f72\u8282\u70b9\u672c\u5730\u5bfc\u5165\u8bc1\u4e66\uff0c\u6267\u884c\u547d\u4ee4\uff1akeytool -import -keystore  &quot;&lt;\u8282\u70b9jdk\u76ee\u5f55&gt;\\jre\\lib\\security\\cacerts&quot;  -file &quot;&lt;\u521a\u521a\u83b7\u53d6\u7684ca.crt\u6587\u4ef6\u8def\u5f84&gt;&quot; -alias caskeystore\uff0c\u5bc6\u7801 changeit<\/p>\n<p>(2)\u5728manager\u670d\u52a1\u90e8\u7f72\u7684Workflow-executor pod\u4e2d\u62f7\u8d1d\u51fajdk\uff0c\u5e76\u5728\u542f\u52a8\u811a\u672c\u4e2d\u6307\u5b9ajavaExec\u8def\u5f84:${\u62f7\u8d1d\u51fa\u6765\u7684jdk\u7684\u5b58\u653e\u8def\u5f84}\uff0c\u5177\u4f53\u5982\u4e0b\uff1a<br \/>\n\u542f\u52a8\u811a\u672c\u8def\u5f84\uff1a\/usr\/local\/workflow-executor\/bin\/workflow-executor<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700118903869.png\" alt=\"file\" \/><\/p>\n<h4>\u6dfb\u52a0\u73af\u5883<\/h4>\n<p>\u6267\u884c\u5668\u6dfb\u52a0python\u6267\u884c\u73af\u5883<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700118976841.png\" alt=\"file\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700119000978.png\" alt=\"file\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2023\/11\/image-1700119039373.png\" alt=\"file\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 \u5ba2\u6237\u5728\u4f7f\u7528\u5404\u79cd\u4ee3\u7801\u6587\u4ef6\u8fd0\u884cworkflow\u7684\u65f6\u5019\uff0c\u5185\u90e8pod\u65e0\u6cd5\u6ee1\u8db3\u5ba2\u6237\u8fd0\u884c\u4ee3\u7801\u7684\u73af\u5883\u9700\u6c42\uff0c\u8fd9\u4e2a\u65f6\u5019 ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=11105\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":190,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,1],"tags":[],"class_list":["post-11105","post","type-post","status-publish","format-standard","hentry","category-install","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/11105","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\/190"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11105"}],"version-history":[{"count":4,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/11105\/revisions"}],"predecessor-version":[{"id":13098,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/11105\/revisions\/13098"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}