Welcome Guest! Log in


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.

 

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.

 

Runtime delivery pulling from Analytics 3.x

Prerequisites:
  • Stambia DI Production Analytics 3.1.1 or higher
  • Stambia DI Designer 19.0.22 or higher
  • Stambia DI Runtime 17.6.10 or higher

 

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>
         <...>
         <httpRepository name="remote_production_environment" environment="production" default="false" url="http://localhost:8080/analytics" user="stambia" uncryptedPassword="stambia" unreachableTolerancePeriod="30000"/>
<...>
</repositories>
<...>
</parameters>

 

Following properties are available:

Property Description Example
name

Delivery repository name.

This is a label which will represent this repository of deliveries.

You will use it when you want to retrieve deliveries from this repository.

remote_production_environment
environment

Stambia DI Production Analytics environment from which to retrieve deliveries.

You can have multiple environments in Stambia DI Production Analytics, such as development, testing, production, ...

This property allows to define from which environment you want to retrieve deliveries from.

This must correspond to the name of an environment existing in Stambia DI Production Analytics.

production
default

This is a property available on all repositories which can be defined in Runtime's configuration file.

It allows to indicate if this is the default repository used when deliveries are pushed inside this Runtime.

As we don't want to push deliveries but pull deliveries in this repository, you should set this to false.

false
url

Stambia DI Production Analytics URL.

This corresponds to the HTTP URL used to access Stambia DI Production Analytics instance.

http://localhost:8080/analytics
user Username which will be used to connect to Stambia DI Production Analytics stambia
password

Encrypted password corresponding to the user which will be used to connect to Stambia DI Production Analytics

The password must be encrypted using Runtime's encrypt command.

Note that you should use only one of the "password" or "uncryptedPassword" properties.

 
uncryptedPassword

Plain text password corresponding to the user which will be used to connect to Stambia DI Production Analytics.

Note that you should use only one of the "password" or "uncryptedPassword" properties.

stambia

 

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.

To learn how to execute deliveries from a specific repository, refer to the reference documentation.

 

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
  • Stambia DI Designer S19.0.22 or higher
  • Stambia DI Runtime S17.2.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>
         <...>
         <httpRepository name="deployment_manager_01" default="false" url="http://localhost:8080/analytics" user="stambia" uncryptedPassword="stambia" unreachableTolerancePeriod="30000"/>
<...>
</repositories>
<...>
</parameters>

 

Following properties are available:

Property Description Example
name

Delivery repository name.

It MUST correspond to the name of a Stambia DI Production Analytics Deployment manager!

deployment_manager_01
default

This is a property available on all repositories which can be defined in Runtime's configuration file.

It allows to indicate if this is the default repository used when deliveries are pushed inside this Runtime.

As we don't want to push deliveries but pull deliveries in this repository, you should set this to false.

false
url

Stambia DI Production Analytics URL.

This corresponds to the HTTP URL used to access Stambia DI Production Analytics instance.

http://localhost:8080/analytics
user Username which will be used to connect to Stambia DI Production Analytics stambia
password

Encrypted password corresponding to the user which will be used to connect to Stambia DI Production Analytics

The password must be encrypted using Runtime's encrypt command.

Note that you should use only one of the "password" or "uncryptedPassword" properties.

 
uncryptedPassword

Plain text password corresponding to the user which will be used to connect to Stambia DI Production Analytics.

Note that you should use only one of the "password" or "uncryptedPassword" properties.

stambia

 

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.

To learn how to execute deliveries from a specific repository, refer to the reference documentation.

 

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

 

 

You have no rights to post comments

Articles

Suggest a new Article!