Welcome Guest! Log in
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…


Stambia DI Runtimes is executing deliveries, which are generated from several ways.

Default behavior is to push new deliveries into a Runtime, which will then be able to execute them.

You can change this behavior and configure your Runtime to pull deliveries directly from Stambia DI Production Analytics, as demonstrated in this article.

This article is dedicated to Stambia DI 2020 S20.3.0 or higher.

If you are using Stambia DI S17, S18, S19 or S20 < S20.3.0 please refer to this article.

About delivery pulling

Concept of delivery pulling is for Stambia DI Runtime to retrieve its deliveries from a remote repository stored in Stambia DI Production Analytics.

This can be really interesting for having autonomous Runtimes which pull their deliveries automatically, instead of having to push deliveries manually to those Runtimes.

When working with Runtimes under docker containers, for instance, this will help to have autonomous containers which will retrieve their deliveries automatically.

Prerequisites:
  • Stambia DI Runtime S20.3.0 or higher
  • Stambia DI Designer S20.3.0 or higher

 

Runtime delivery pulling from Analytics 3.x

Prerequisites:
  • Stambia DI Production Analytics
    • 3.1.1 or higher for standard deliveries
    • 3.2.1 or higher for web services deliveries

 

When you want your Runtime to retrieve its deliveries from Stambia DI Production Analytics 3.x.x, you can proceed as follow.

Open Runtime's configuration file, which is located in a default installation under stambiaRuntime/properties/engineParameters.xml

Then update repositories section by adding a new "httpRepository" as below.

 

<parameters>
<...>
<repositories>
<...>
<deliveryRepository name="analytics_3_label_for_this_repository" default="false" class="com.stambia.repository.delivery.HttpDeliveryRepositoryV2Plugin"/>
<parameter name="url" value="http://localhost:8080/analytics"/>
<parameter name="user" value="stambia"/>
<parameter name="uncryptedPassword" value="stambia"/>
<parameter name="unreachableTolerancePeriod" value="30000"/>
<parameter name="environment" value="analytics_environment_name"/>
[<parameter name="defaultDeliveryPath" value="analytics_poject_name/package_manager_name"/>]
<...>
</deliveryRepository>
<deliveryRepository name="analytics_3_label_for_this_webservices_repository" default="true" webservice="true" class="com.stambia.repository.delivery.HttpDeliveryRepositoryV2Plugin"/>
<parameter name="url" value="http://localhost:8080/analytics"/>
<parameter name="user" value="stambia"/>
<parameter name="uncryptedPassword" value="stambia"/>
<parameter name="unreachableTolerancePeriod" value="30000"/>
<parameter name="environment" value="analytics_environment_name"/>
<parameter name="mode" value="poll"/>
<parameter name="pollInt" value="100000"/>
<...>
</deliveryRepository>
<...>
</repositories>
<...>
</parameters>

 

Some properties are available. Refer to this article for further information.

 

Limitation

When using web services repositories, the deliveries retrieved cannot be invoked from SOAP and HTTP REST V1 endpoints for now.

 

You can now restart your Runtime.

When executing deliveries, if you specify to execute deliveries from this repository, the Runtime will pull the delivery automatically from Stambia DI Production Analytics before executing it.

From Stambia DI Production Analytics point of view, you only have to deploy your deliveries as usual in your Delivery Projects.

Make sure to publish them on the correct environment which corresponds to the environment from which the Runtime is retrieving deliveries.

 

delivery pulling from analytics 3

 

Additionally, you can also consult the deliveries available from this type of Runtime repository from the Navigator View in Stambia DI Production Analytics or in Stambia DI Designer.

Example from Stambia DI Designer:

delivery pulling from analytics 3 navigator

 

Runtime delivery pulling from Analytics 2.x

Prerequisites:
  • Stambia DI Production Analytics 2.1.0 or higher

 

When you want your Runtime to retrieve its deliveries from Stambia DI Production Analytics 2.x.x, you can proceed as follow.

Open Runtime's configuration file, which is located in a default installation under stambiaRuntime/properties/engineParameters.xml

Then update repositories section by adding a new "httpRepository" as below.

<parameters>
<...>
<repositories/>
<...>
<deliveryRepository name="analytics_2_deployment_manager_name" default="false" class="com.stambia.repository.delivery.HttpDeliveryRepositoryV1Plugin""/>
<parameter name="url" value="http://localhost:8080/analytics"/>
<parameter name="user" value="stambia"/>
<parameter name="uncryptedPassword" value="stambia"/>
<parameter name="unreachableTolerancePeriod" value="30000"/>
<...>
</deliveryRepository>
<deliveryRepository name="analytics_2_deployment_manager_name" default="true" webservice="true" class="com.stambia.repository.delivery.HttpDeliveryRepositoryV1Plugin""/>
<parameter name="url" value="http://localhost:8080/analytics"/>
<parameter name="user" value="stambia"/>
<parameter name="uncryptedPassword" value="stambia"/>
<parameter name="unreachableTolerancePeriod" value="30000"/>
<parameter name="mode" value="poll"/>
<parameter name="pollInt" value="100000"/>
</deliveryRepository>
<...>
</repositories>
</parameters>

 

Some properties are available. Refer to this article for further information.

You can now restart your Runtime.

When executing deliveries, if you specify to execute deliveries from this repository, the Runtime will pull the delivery automatically from Stambia DI Production Analytics before executing it.

 

From Stambia DI Production Analytics point of view, you to define the deliveries you want to be reachable from Runtime's repository.

Make sure to publish them with this box checked.

delivery pulling from analytics 2

 

Additionally, you can also consult the deliveries available from this type of Runtime repository from the Navigator View in Stambia DI Production Analytics or in Stambia DI Designer.

Example from Stambia DI Designer:

delivery pulling from analytics 2 navigator

 

 

Articles

Suggest a new Article!