Denis
12/04/2024, 2:35 PMfactoryinsight
is deprecated, and we're expected to use umh_v2
exclusively?
2) Does populating the 8 tables from umh_v2
still work via the topic name as follows?
* Via the _analytics
schema: asset work_order, shift, state, product, product_type
* Via the _historian
schema: asset, tag, tag_string
3) Can the predefined database schema be extended with additional tables if my use case requires a more complicated data model? For example, a work order consists of multiple operations?
I'm referring to https://umh.docs.umh.app/docs/datamodel/. Is there any other documentation that I'm missing?Jermuk
12/04/2024, 3:00 PMJermuk
12/04/2024, 3:00 PMJermuk
12/04/2024, 3:05 PMDanielH
12/04/2024, 8:17 PMDanielH
12/04/2024, 8:22 PMDenis
12/05/2024, 3:55 PM_analytics
schema use is no longer recommended (as per the blog article), how will asset work_order, shift, state, product, product_type be created and populated?Denis
12/05/2024, 4:00 PM_DenisAnalytics
and defining the appropriate SQL code to create and populate the tables?Jermuk
12/05/2024, 6:08 PMDenis
12/06/2024, 11:38 AMLuke van Enkhuizen
12/06/2024, 11:57 AMLuke van Enkhuizen
12/06/2024, 12:01 PMLuke van Enkhuizen
12/06/2024, 12:16 PMLuke van Enkhuizen
12/06/2024, 12:37 PMJermuk
12/06/2024, 12:39 PMJermuk
12/06/2024, 12:39 PMJermuk
12/06/2024, 12:40 PMLuke van Enkhuizen
12/06/2024, 12:46 PMMateusz
12/06/2024, 1:27 PMLuke van Enkhuizen
12/06/2024, 5:42 PMLuke van Enkhuizen
12/06/2024, 5:42 PMJermuk
12/06/2024, 6:06 PMJermuk
12/06/2024, 6:06 PMJermuk
12/06/2024, 6:06 PMLuke van Enkhuizen
12/06/2024, 6:07 PMJermuk
12/06/2024, 6:08 PMDenis
12/06/2024, 6:08 PMDenis
12/06/2024, 6:11 PMDenis
12/06/2024, 6:13 PMLuke van Enkhuizen
12/06/2024, 6:14 PMLuke van Enkhuizen
12/06/2024, 6:14 PMDanielH
12/07/2024, 10:51 AMJermuk
12/07/2024, 12:49 PMDenis
12/07/2024, 7:26 PMDanielH
12/07/2024, 7:30 PMDanielH
12/07/2024, 7:34 PMDenis
12/07/2024, 8:01 PM[8:58:46 PM] - Action confirmed. Preparing to execute action.
[8:58:47 PM] - Editing data flow component.
[8:58:47 PM] - [Step 1/6] Retrieving configuration to get current settings.
[8:58:47 PM] - [Step 1/6] Parsing configuration to extract deployment parameters.
[8:58:47 PM] - [Step 3/4] Adding new data flow component to configuration.
[8:58:47 PM] - Error: failed to execute action: [Step 3/6] Failed to add new data flow component to configuration: refusing to deploy new version, not based on the currently deployed version (BasedOnUUID: 4392ae33-5ecd-42b9-953b-3cd541c3ebcf, DeployedVersion: a0b0cb21-2999-4fc1-9aea-f43c9ae876cd)
Jermuk
12/08/2024, 7:26 AMJermuk
12/08/2024, 7:27 AMJermuk
12/08/2024, 7:29 AMDanielH
12/08/2024, 8:35 AMDenis
12/08/2024, 7:09 PMDenis
12/09/2024, 10:01 AMJermuk
12/09/2024, 10:05 AMDenis
12/09/2024, 10:17 AM_MES
data contract, is there any reason why I can't just give the Redpanda topic the same name as the table in Timescaledb, i.e. asset
, work_order
, operation
, etc. ?
I don't think I need the feature from the current _historian
data contract that populates an asset table based on the topic name because we just query the assets from an external system via HTTP~~
My question doesn't make much sense... I'll take some time to think this throughLuke van Enkhuizen
12/09/2024, 1:34 PMLuke van Enkhuizen
12/09/2024, 1:35 PMJermuk
12/09/2024, 2:17 PMJermuk
12/09/2024, 2:17 PMDenis
12/09/2024, 4:40 PMumh.v1.Belgium
where I receive messages with the kafka key Antwerp.Kalmthout.Heide.Begonia._mes.work_order
This is an example message:
{
"actual_end": null,
"actual_start": null,
"archived": false,
"article_id": 12345,
"created_at": 1733761490051,
"created_by": "system",
"external_order_id": "EXT-6925",
"order_id": 403074,
"planned_end": "2024-12-10T16:24:50.051Z",
"planned_quantity": 100,
"planned_start": "2024-12-09T16:24:50.051Z",
"status": "pending"
}
The problem is that the input_received
count under Metrics in the management console stays at zero, even though new messages are successfully being written to the kafka topic. I don't understand why the input node doesn't receive data.
I checked that:
- I'm using the correct consumer kafka_to_postgresql_historian_bridge
- the topic name is umh.v1.Belgium
which should match the wildard
- the consumer group kafka_to_postgresql_historian_bridge
is listed in the list of consumers for that topic in Redpanda
Here is the input YAML:
input:
kafka_franz:
seed_brokers:
- united-manufacturing-hub-kafka.united-manufacturing-hub.svc.cluster.local:9092
regexp_topics: true
topics:
- umh.v1.*
consumer_group: kafka_to_postgresql_historian_bridge
auto_replay_nacks: false
I added a file with the complete bridge YAML ito this message
https://cdn.discordapp.com/attachments/1313876222429630525/1315719705318658108/question.yaml?ex=67586ef6&is=67571d76&hm=4fb03d290f7e79df6a76ee59637c9188d89c840378bce5c4307bf19cb1a69845&Denis
12/09/2024, 4:55 PMdsn: postgres://kafkatopostgresqlv2:{{ include "united-manufacturing-hub.postgresql.kafkatopostgresqlv2.password" . }}@united-manufacturing-hub.united-manufacturing-hub.svc.cluster.local:5432/umh_v2
Ferdinand
12/09/2024, 5:13 PMFerdinand
12/09/2024, 5:14 PMDenis
12/09/2024, 5:28 PMDenis
12/12/2024, 3:11 PMumh/v1/<ISA-95 hierarchy>/<asset>/_mes/<MES table>
MQTT topics into a single kafka topic umh.v1.<ISA-95 hierarchy>.mes
where the kafka key is equal to <MES table>
2) An individual kafka_to_timescale_mes_bridge for each <MES table>
that transfers kafka messages from the umh.v1.<ISA-95 hierarchy>.mes
topic into a database table based on the value of the kafka_key
.
Here's an example of kafka messages the Redpanda UI (see image).
Each bridge works individually when tested with an "inject" node in Node-Red. However, whenever both bridges are activated, and thus both read from the same kafka topic, randomly one one bridge manages to get its data into the database.
It's as if it's not possible to have multiple bridges listening to the same kafka topic if all messages have the same timestamp. Could this be the case?
umh.v1.<ISA-95 hierarchy>.mes
topic into may topics like umh.v1.<ISA-95 hierarchy>.mes**.work_order**
etc.Denis
12/12/2024, 3:23 PMumh.v1.<ISA-95 hierarchy>.mes
topic into may topics like umh.v1.<ISA-95 hierarchy>.mes.work_order
etc.) and the same problem occurs:
The first bridge 1) works flawlessly, but the kafka_to_timescale bridges don't run. It's as if they are not being activated and are ignoring new messages in the topics they listen to.
Any tips on how to debug such a bridge? I already posted the code here: https://discord.com/channels/700613971941785680/1316366172907638835/1316779471692628019Jermuk
12/12/2024, 5:59 PMJermuk
12/12/2024, 6:00 PMDenis
12/12/2024, 7:01 PMDenis
12/13/2024, 11:33 AMJermuk
12/13/2024, 11:59 AMDenis
12/13/2024, 3:56 PMJermuk
12/13/2024, 5:11 PM