UVAP
  • Key Features
  • Feature Demos
  • Installation
  • Developer Guide
  • Operation Guide
  • Tutorials
  • Help

›Microservice Configuration

Developer Guide

  • Architecture
  • Data Model
  • Microservices

    • Multi-Graph Runner
    • Tracker
    • Pass Detector
    • Reidentifier
    • Feature Vector Clustering
    • Detection Filter
    • Video Capture

    Microservice Configuration

    • Microservice Superconfiguration
    • Configuring Multi-Graph Runner
    • Configuring Tracker
    • Configuring Pass Detector
    • Configuring Reidentifier
    • Configuring Feature Vector Clustering
    • Configuring Detection Filter
    • Configuring Video Capture

    Tools

    • Stream Configurator UI Guide
    • Configuring Detection Filter Areas
    • Configuring Passlines
  • Extending UVAP

Microservice Superconfiguration

This document introduces overall general integration configuration settings of the UVAP microservices.

Authentication Definition

The following are optional authentication definitions of source and target topic brokers. The definitions contain the broker ID, user name and password in JSON format.

auth_defsList of authentication definition data
idAuthentication definition unique ID.
user_nameThe SASL authentication username.
passwordThe SASL authentication password.

Topic Definitions

Source Topic Options

The following source_options are available:

consumer_groupKafka consumer group. If left empty a UUID will be generated.
startDefines the record position where Kafka starts reading from the topic.
START_BEGINStart from the first record.
START_DATETIMEStart from a specific timestamp.
START_NOWStart from the current timestamp.
START_ENDStart at the end of the records.
start_date_timeStarts reading from the set timestamp defined in ISO-8601 format (milliseconds and time zone are optional). Only records with equal or later timestamps are processed.

Note: Set start_date_time only if start is set to START_DATETIME. For example: 2019-04-08 10:10:24.123 +01:00

endDefines the record position where Kafka stops reading.
END_NEVERThe microservice does not stop after the last record is processed, instead it waits for new input records.
END_DATETIMEEnds at a specific timestamp.
END_ENDThe microservice stops after processing the last source record.
end_date_timeEnds reading at reaching a specific timestamp defined in ISO-8601 format (milliseconds and time zone are optional). Only records with earlier timestamps are processed.

Note: Set end_date_time only if end is set to END_DATETIME. For example: 2019-04-08 10:10:24.123 +01:00

message_processing_latency_msEach topic has this amount of time to provide message for processing before a newer message is processed from another topic.

Source Topic Configs

sourcesConfiguration of input topic brokers.
broker_listSource broker address and port.
nameSee Topic Naming Convention.
auth_refOptional authentication definition id. Exclusive to user_name and password.
user_nameOptional SASL authentication username of the source.
passwordOptional SASL authentication password of the source.

Target Topic Options

The following target_options are available.

handlingDefines the target topic behaviour.
REPLACEDelete target topic.
CHECK_TSRaise an error if the topic exists with a newer latest timestamp.
SKIP_TSSkip events up to the latest timestamp in the target topic.

Target Topic Configs

targetConfiguration of target topic brokers.
broker_listTarget broker address and port.
nameSee Topic Naming Convention.
auth_refOptional authentication definition id. Exclusive to user_name and password.
user_nameOptional SASL authentication username of the target.
passwordOptional SASL authentication password of the target.

Examples

Authentication Definitions

Two authentication definitions are configured. The first one is used for the source broker connections, while the second one is not used in this example.

{
  "authDefs":
  [
    {
      "id":"srcAuth",
      "user_name":"user1",
      "password":"srcPasswd"
    },
    {
      "id":"dstAuth",
      "user_name":"user2",
      "password":"dstPasswd"
    }
  ]
}

Example Microservice Configuration

The sources are set to be read from the given date and never stop being read. Two feature vector sources are defined with broker list and name, using the predefined authentication parameters. The target stream is being replaced and can be accessed without any authentication.

{
  "source_options":
  {
    "start":"START_DATETIME",
    "start_date_time": "2019-05-31T10:30:00.000 +02:00",
    "end":"END_NEVER",
    "consumer_group":"hardwareStore"
  },
  "sources":
  [
    {
      "broker_list":"demoserver:9092",
      "name":"staff.FeatureVectorRecord.json",
      "auth_ref":"srcAuth"
    },
    {
      "broker_list":"demoserver:9092",
      "name":"cam.entrance.FeatureVectorRecord.json",
      "auth_ref":"srcAuth"
    },
    {
      "broker_list":"demoserver:9092",
      "name":"cam.exit.FeatureVectorRecord.json",
      "user_name":"user1",
      "password":"srcPasswd"
    }
  ],
  "target_options":
  {
    "handling":"REPLACE"
  },
  "target":
  {
    "broker_list":"localhost:9092",
    "name":"sample.ReidRecord.json",
  }
}
← Video CaptureConfiguring Multi-Graph Runner →
  • Authentication Definition
  • Topic Definitions
    • Source Topic Options
    • Source Topic Configs
    • Target Topic Options
    • Target Topic Configs
  • Examples
    • Authentication Definitions
    • Example Microservice Configuration
Help
UVAP License TermsGlossaryTypographic ConventionsTrademark InformationSupport
Navigation
Key FeaturesFeature DemosInstallationDeveloper GuideTutorialsHelp
Community
GitHubFacebookLinkedInTwitterYouTube
Ultinous
Copyright © 2019-2020 Ultinous