{"id":325270,"date":"2021-06-22T03:00:20","date_gmt":"2021-06-22T03:00:20","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=325270"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=325270","title":{"rendered":"Tango Controls hdbpp-docker"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<div style=\"text-align:center;\"><img decoding=\"async\" alt=\"main\" width=\"800\" src=\"https:\/\/habrastorage.org\/webt\/jf\/9n\/pl\/jf9nplvejlhxgattedsrk33eyye.png\"><\/div>\n<p>  <\/p>\n<p>\u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/533040\/\">HDB++ TANGO Archiving System<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u043e\u0431 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044e. \u0417\u0434\u0435\u0441\u044c \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c docker \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0430\u0437\u0430 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"docker\">docker<\/h2>\n<p>  <\/p>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c docker:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">docker pull registry.gitlab.com\/s2innovation\/tangobox-docker\/tangobox-hdbpp:latest  docker run -dit --name tangobox-hdbpp -h tangobox-hdbpp --network tango_nw --ip 172.18.0.7 --add-host scsc:172.18.0.1 -e TANGO_HOST=scsc:10000 --restart unless-stopped registry.gitlab.com\/s2innovation\/tangobox-docker\/tangobox-hdbpp:latest<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"sozdanie-i-nastroyka-device-server-ov-arhivacii\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Device Server-\u043e\u0432 \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u0438<\/h2>\n<p>  <\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c <strong>jive<\/strong>, \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0432\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 <strong>hdb++cm-srv<\/strong> \u0438 <strong>hdb++es-srv<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">jive<\/code><\/pre>\n<p>  <\/p>\n<p><em>Edit-&gt;Create Server<\/em><\/p>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Server<\/td>\n<td>hdb++cm-srv\/1<\/td>\n<\/tr>\n<tr>\n<td>Class<\/td>\n<td>HdbConfigurationManager<\/td>\n<\/tr>\n<tr>\n<td>Devices<\/td>\n<td>archiving\/hdbpp\/configurationmanager.1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Server<\/td>\n<td>hdb++es-srv\/1<\/td>\n<\/tr>\n<tr>\n<td>Class<\/td>\n<td>HdbEventSubscriber<\/td>\n<\/tr>\n<tr>\n<td>Devices<\/td>\n<td>archiving\/hdbpp\/eventsubscriber.1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/gt\/pz\/py\/gtpzpywzgpbatm_xdzuwjtazauw.jpeg\"><\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/qu\/sa\/1e\/qusa1ezysmtnuwhcnvbomnqqmzk.jpeg\"><\/p>\n<p>  <\/p>\n<h3 id=\"zapolnyaem-properties\">\u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c properties<\/h3>\n<p>  <\/p>\n<p>\u0412\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <strong>Server<\/strong> \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c <strong>properties<\/strong> \u0443 <strong>hdb++cm-srv<\/strong>:<\/p>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Property name<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ArchiverList<\/td>\n<td>tango:\/\/tangobox:10000\/archiving\/hdbpp\/eventsubscriber.1<\/td>\n<\/tr>\n<tr>\n<td>__SubDevices<\/td>\n<td>tango:\/\/tangobox:10000\/archiving\/hdbpp\/eventsubscriber.1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/i6\/kg\/di\/i6kgdiewz-j_cupuxdzywn1dfny.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <strong>Class<\/strong> \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c <strong>properties<\/strong> \u0443 <strong>HdbConfigurationManager<\/strong>:<\/p>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Property name<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>InheritedFrom<\/td>\n<td>TANGO_BASE_CLASS<\/td>\n<\/tr>\n<tr>\n<td>LibConfiguration<\/td>\n<td>\n<ul>\n<li>host=tangobox-hdbpp<\/li>\n<li>user=hdbpprw<\/li>\n<li>dbname=hdbpp<\/li>\n<li>port=3306<\/li>\n<li>libname=libhdb++mysql.so.6<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>MaxSearchSize<\/td>\n<td>2000<\/td>\n<\/tr>\n<tr>\n<td>ProjectTitle<\/td>\n<td>Hdb++ configuration manager<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jf\/dy\/fo\/jfdyfopvej92pf-fad8jtshft5y.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u0418 \u0443 <strong>HdbEventSubscriber<\/strong>:<\/p>\n<p>  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<thead>\n<tr>\n<th>Property name<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>CheckPeriodicTime<\/td>\n<td>150<\/td>\n<\/tr>\n<tr>\n<td>DefaultContext<\/td>\n<td>ALWAYS<\/td>\n<\/tr>\n<tr>\n<td>Description<\/td>\n<td>This class is able to subscribe on archive events and store value in Historical DB<\/td>\n<\/tr>\n<tr>\n<td>HdbppContext<\/td>\n<td>0:ALWAYS 1:RUN 2:SHUTDOWN 3:SERVICE<\/td>\n<\/tr>\n<tr>\n<td>InheritedFrom<\/td>\n<td>TANGO_BASE_CLASS<\/td>\n<\/tr>\n<tr>\n<td>LibConfiguration<\/td>\n<td>\n<ul>\n<li>host=tangobox-hdbpp<\/li>\n<li>user=hdbpprw<\/li>\n<li>password=hdbpprw<\/li>\n<li>dbname=hdbpp<\/li>\n<li>port=3306<\/li>\n<li>libname=libhdb++mysql.so.6<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>PollingThreadPeriod<\/td>\n<td>60<\/td>\n<\/tr>\n<tr>\n<td>ProjectTitle<\/td>\n<td>Tango Device Server<\/td>\n<\/tr>\n<tr>\n<td>StartArchivingAtStart<\/td>\n<td>false<\/td>\n<\/tr>\n<tr>\n<td>StatisticsTimeWindow<\/td>\n<td>60<\/td>\n<\/tr>\n<tr>\n<td>SubscribeRetryPeriod<\/td>\n<td>150<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sq\/ks\/oo\/sqksoowpgytzwdmg9nmt-omzvvs.jpeg\"><\/p>\n<p>  <\/p>\n<h2 id=\"astor\">Astor<\/h2>\n<p>  <\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c <strong>astor<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">astor<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/tr\/ti\/mz\/trtimz26qfmnjh-5_rrrjtalow0.jpeg\"><\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/cv\/hf\/pc\/cvhfpc05arozrce-ydkhkxmmpdo.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u043e\u0448\u043b\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e, \u0442\u043e \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0447\u0442\u043e <strong>tangobox-hdbpp<\/strong> \u0433\u043e\u0440\u0438\u0442 \u0437\u0435\u043b\u0435\u043d\u044b\u043c. docker \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0435\u0431\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441 <strong>Starter<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a <strong>astor<\/strong> \u0438\u0437 docker-\u0430 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">\/usr\/local\/bin\/Starter<\/code><\/pre>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a, \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 docker-\u0435 \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">\/usr\/local\/bin\/hdb++es-srv \/usr\/local\/bin\/hdb++cm-srv<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/r8\/7n\/6_\/r87n6_h5ain5louen9jqex1fsrw.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 2-\u044b\u043c \u0449\u0435\u043b\u0447\u043a\u043e\u043c \u043c\u044b\u0448\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a <strong>tangobox-hdbpp<\/strong>, \u0436\u043c\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 <strong>Start New<\/strong> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c 2-\u0432\u0430 Device Server-\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u043c\u0438 \u0440\u0430\u043d\u0435\u0435. \u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0437\u0430\u0434\u0430\u0435\u043c \u043a\u0430\u043a \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/xn\/ps\/ao\/xnpsaob7do2k6erhkuy7kgzh7wy.jpeg\"><\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/dl\/9t\/a8\/dl9ta8i2sssubv0reufysmgrjf8.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/561150\/\"> https:\/\/habr.com\/ru\/post\/561150\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<div style=\"text-align:center;\"><img decoding=\"async\" alt=\"main\" width=\"800\" src=\"https:\/\/habrastorage.org\/webt\/jf\/9n\/pl\/jf9nplvejlhxgattedsrk33eyye.png\"><\/div>\n<p>  <\/p>\n<p>\u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/533040\/\">HDB++ TANGO Archiving System<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u043e\u0431 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u0438 \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044e. \u0417\u0434\u0435\u0441\u044c \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c docker \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0430\u0437\u0430 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-325270","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/325270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=325270"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/325270\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=325270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=325270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=325270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}