Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
ac451fd
git ID
oshadmon Apr 30, 2026
119a059
chore: update version [os-dev] [skip ci]
github-actions[bot] Apr 30, 2026
392af49
Merge remote-tracking branch 'origin/pre-develop' into os-dev
oshadmon Apr 30, 2026
e25e11b
chore: update version [os-dev] [skip ci]
github-actions[bot] Apr 30, 2026
cf12a7a
missing if statement
oshadmon Apr 30, 2026
198e484
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Apr 30, 2026
42cbe0f
chore: update version [os-dev] [skip ci]
github-actions[bot] Apr 30, 2026
c583e77
tmp added set debug in policy
oshadmon Apr 30, 2026
3731e11
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Apr 30, 2026
bf5b665
chore: update version [os-dev] [skip ci]
github-actions[bot] Apr 30, 2026
12d82fe
tmp added set debug in policy
oshadmon Apr 30, 2026
ec14f6b
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Apr 30, 2026
39d7f62
chore: update version [os-dev] [skip ci]
github-actions[bot] Apr 30, 2026
85c3507
tmp added set debug in policy
oshadmon Apr 30, 2026
03baf48
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Apr 30, 2026
1ff4a18
chore: update version [os-dev] [skip ci]
github-actions[bot] Apr 30, 2026
244fa49
tmp added set debug in policy
oshadmon Apr 30, 2026
67061bd
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Apr 30, 2026
caf08ed
chore: update version [os-dev] [skip ci]
github-actions[bot] Apr 30, 2026
ee97895
tmp added set debug in policy
oshadmon Apr 30, 2026
3a8b38e
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Apr 30, 2026
64f99d7
chore: update version [os-dev] [skip ci]
github-actions[bot] Apr 30, 2026
7560a4c
tmp added set debug in policy
oshadmon Apr 30, 2026
c2376e3
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Apr 30, 2026
bbc260a
chore: update version [os-dev] [skip ci]
github-actions[bot] Apr 30, 2026
659ac43
tmp added set debug in policy
oshadmon Apr 30, 2026
a2b508a
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Apr 30, 2026
4f3600d
chore: update version [os-dev] [skip ci]
github-actions[bot] Apr 30, 2026
2268620
missing hen on line 62/63
oshadmon Apr 30, 2026
2386c67
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Apr 30, 2026
9ff56ee
chore: update version [os-dev] [skip ci]
github-actions[bot] Apr 30, 2026
0946692
moved monitoring db creation + added support to use psql
oshadmon May 4, 2026
c476b43
moved monitoring db creation + added support to use psql
oshadmon May 4, 2026
91a1087
contains logical datbase
oshadmon May 4, 2026
d9de5ee
if/else logic for default ports - include msg broker for operator + p…
oshadmon May 4, 2026
e77685a
chore: update version [os-dev] [skip ci]
github-actions[bot] May 4, 2026
41ec227
msg broker connection is built into configs for publisher / operator …
oshadmon May 4, 2026
a54ef13
added calls into config policy script - master/query only support no…
oshadmon May 4, 2026
1855922
license key if condition moved only into script
oshadmon May 4, 2026
eec1c19
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon May 4, 2026
525cbb6
simplification of monitoring policies in order to better gurantee actual
oshadmon May 5, 2026
8d8fc81
chore: update version [os-dev] [skip ci]
github-actions[bot] May 5, 2026
8ef7d91
missing then
oshadmon May 5, 2026
139f857
missing then/true
oshadmon May 5, 2026
2b98b8c
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon May 5, 2026
3838438
chore: update version [os-dev] [skip ci]
github-actions[bot] May 5, 2026
d597fb2
node monitoring + param configs
oshadmon May 5, 2026
f3832a8
chore: update version [os-dev] [skip ci]
github-actions[bot] May 5, 2026
81ef06f
syslog to support any ip / port
oshadmon May 5, 2026
60c66b2
helpers for operator - in progress
oshadmon May 5, 2026
7c0c27a
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon May 5, 2026
ca68d3e
chore: update version [os-dev] [skip ci]
github-actions[bot] May 5, 2026
9f0964a
improve params
oshadmon May 8, 2026
5608e35
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon May 8, 2026
5461b9b
chore: update version [os-dev] [skip ci]
github-actions[bot] May 8, 2026
9fa2b46
node monitroing logic updated to support monitoring policy
oshadmon May 15, 2026
cc11879
chore: update version [os-dev] [skip ci]
github-actions[bot] May 15, 2026
8dd9ae9
monitoring logic to support monitoring ID
oshadmon May 15, 2026
3b7a144
chore: update version [os-dev] [skip ci]
github-actions[bot] May 15, 2026
10297ff
customer use casess
oshadmon May 24, 2026
8c3c3cb
in progress look @ no configs
oshadmon May 24, 2026
36a1b96
chore: update version [os-dev] [skip ci]
github-actions[bot] May 24, 2026
ac08d16
modbus base logic
oshadmon May 24, 2026
86653f5
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon May 24, 2026
d14ade2
chore: update version [os-dev] [skip ci]
github-actions[bot] May 24, 2026
394fccf
mapping logic 'issue'
oshadmon May 24, 2026
5226c0a
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon May 24, 2026
f65e65a
chore: update version [os-dev] [skip ci]
github-actions[bot] May 24, 2026
4af71ac
modbus mapping
oshadmon May 25, 2026
83cce37
modbus mapping
oshadmon May 25, 2026
5c4aab8
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon May 25, 2026
c17c809
chore: update version [os-dev] [skip ci]
github-actions[bot] May 25, 2026
53e4fbf
modbus mapping
oshadmon May 25, 2026
a7dceaf
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon May 25, 2026
95dc515
chore: update version [os-dev] [skip ci]
github-actions[bot] May 25, 2026
7a780fa
modbus mapping
oshadmon May 25, 2026
b24d3e5
chore: update version [os-dev] [skip ci]
github-actions[bot] May 25, 2026
171a115
docker monitoring
oshadmon Jun 1, 2026
fdf8fda
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 1, 2026
8925c46
improve logical support for missing node / cluster name using unique …
oshadmon Jun 3, 2026
65da004
update to support version for configs
oshadmon Jun 3, 2026
deb02b0
zero-touch support
oshadmon Jun 5, 2026
d20406c
docker
oshadmon Jun 8, 2026
c25163f
automatic processing for MQTT - enhanced
oshadmon Jun 8, 2026
3dd5425
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 8, 2026
358d34c
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 8, 2026
3f1f085
automatic processing for MQTT - enhanced
oshadmon Jun 8, 2026
2e2ac50
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 8, 2026
940f45a
config policy path updated
oshadmon Jun 8, 2026
6367fa8
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 8, 2026
b8c2bfa
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 8, 2026
24153f2
config policy path updated
oshadmon Jun 8, 2026
92c146c
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 8, 2026
e232944
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 8, 2026
bce3af1
config policy path updated
oshadmon Jun 8, 2026
98021d4
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 8, 2026
7cfee08
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 8, 2026
b4cc8cc
config policy path updated
oshadmon Jun 9, 2026
afe8159
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 9, 2026
97fb138
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 9, 2026
82e0362
config policy path updated
oshadmon Jun 9, 2026
4078f89
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 9, 2026
44b6535
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 9, 2026
a801604
config policy path updated
oshadmon Jun 9, 2026
7491eb3
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 9, 2026
e6d1cc3
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 9, 2026
4231550
config policy path updated
oshadmon Jun 9, 2026
04629f1
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 9, 2026
dc21809
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 9, 2026
98e70d4
Merge branch 'os-dev' into os-dev2
oshadmon Jun 11, 2026
339449b
cluster naming
oshadmon Jun 12, 2026
79fe95f
node deployment
oshadmon Jun 12, 2026
c9577df
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 12, 2026
51769b5
rewrote node naming
oshadmon Jun 15, 2026
cae4e55
Merge remote-tracking branch 'origin/os-dev2' into os-dev
oshadmon Jun 15, 2026
2bc47b1
tmp
oshadmon Jun 15, 2026
70184bd
Merge branch 'os-dev2' into os-dev
oshadmon Jun 15, 2026
14de7a3
rewrote node naming
oshadmon Jun 15, 2026
6a0e1d8
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 15, 2026
e760cd2
default company name + blockchain operator for main logic
oshadmon Jun 15, 2026
91939ed
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 15, 2026
0f80a28
pre-develop -> main
oshadmon Jun 15, 2026
0aa3544
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 15, 2026
8c8b435
version #
oshadmon Jun 15, 2026
a9e2982
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 15, 2026
bb45908
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 15, 2026
bec7545
dockerfile wrong
oshadmon Jun 15, 2026
614b226
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 15, 2026
62a8a89
image builder command
oshadmon Jun 16, 2026
0da52a3
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 16, 2026
995693d
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 16, 2026
19fee57
working docker builder
oshadmon Jun 16, 2026
9d8bd01
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 16, 2026
b6c383a
file naming
oshadmon Jun 17, 2026
88d7b74
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 17, 2026
05c70fa
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 17, 2026
09fde53
file naming
oshadmon Jun 17, 2026
f7d87db
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 17, 2026
7c89a96
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 17, 2026
a673516
minor changes to support zero-touch
oshadmon Jun 17, 2026
888c575
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 17, 2026
00ab391
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 17, 2026
a699777
improved MQTT logic to better support smart city data
oshadmon Jun 17, 2026
b13fcca
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 17, 2026
8c81791
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 17, 2026
40fed7c
bring= -> value=bring
oshadmon Jun 17, 2026
0571e81
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 17, 2026
504ba47
cluster name
oshadmon Jun 17, 2026
6ad66db
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 17, 2026
2218523
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 17, 2026
4d67afc
debug cluster
oshadmon Jun 17, 2026
7037a97
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 17, 2026
19dfe94
syntax errors
oshadmon Jun 17, 2026
9fe3d6b
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 17, 2026
45d979c
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 17, 2026
ee86ddd
missing node name at restart
oshadmon Jun 17, 2026
5548fc3
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 17, 2026
99838ad
resolve syntax bugs
oshadmon Jun 17, 2026
7345edd
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 17, 2026
48a9f08
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 17, 2026
0f72c4e
node name for hidden
oshadmon Jun 17, 2026
ef90cfe
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 17, 2026
0b910b8
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 17, 2026
699fb86
smart city monitorig
oshadmon Jun 18, 2026
c1ec2f9
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 18, 2026
6f4780e
format issues for query
oshadmon Jun 19, 2026
de8c827
M!stale_q[0]erge branch 'os-dev' of https://github.com/AnyLog-co/depl…
oshadmon Jun 19, 2026
8573946
format issues for query
oshadmon Jun 19, 2026
af10a04
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 19, 2026
558cd29
Fix waste plan notifications
pintomax Jun 19, 2026
012853d
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 19, 2026
817af88
Put back false as expected value
pintomax Jun 19, 2026
af0b832
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
pintomax Jun 19, 2026
b64c1f0
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 19, 2026
bd6277a
reorg smart city + updating notifications
oshadmon Jun 19, 2026
8ccb028
reorg smart city + updating notifications
oshadmon Jun 19, 2026
66f0e66
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 19, 2026
df869b3
node monitoring
oshadmon Jun 19, 2026
43ec3b5
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 19, 2026
6bebd18
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 19, 2026
16941cb
cluster numbering
oshadmon Jun 22, 2026
30a7483
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 22, 2026
26b7fcd
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 22, 2026
6dd0352
rm license from cluster name
oshadmon Jun 23, 2026
bf794d5
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 23, 2026
331542b
chore: update CHANGELOG unreleased [skip ci]
oshadmon Jun 23, 2026
0847d93
chore: update CHANGELOG unreleased [skip ci]
oshadmon Jun 23, 2026
5de3c84
water plant was missing variables integrated into it
oshadmon Jun 29, 2026
60c299c
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 29, 2026
d6057c6
chore: update CHANGELOG unreleased [skip ci]
anylog-ci-bot[bot] Jun 29, 2026
84d7c08
cluster name
oshadmon Jun 29, 2026
3772aa8
Merge branch 'os-dev' of https://github.com/AnyLog-co/deployment-scri…
oshadmon Jun 29, 2026
1eac7db
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 29, 2026
822526e
chore: update CHANGELOG unreleased [skip ci]
anylog-ci-bot[bot] Jun 29, 2026
7f32ac1
missing comma
oshadmon Jun 30, 2026
c6e416d
run schedule -> schedule
oshadmon Jun 30, 2026
ff6c805
run schedule -> schedule
oshadmon Jun 30, 2026
49b5b61
run schedule -> schedule
oshadmon Jun 30, 2026
14a735a
chore: update version [os-dev] [skip ci]
github-actions[bot] Jun 30, 2026
51fbdab
chore: update CHANGELOG unreleased [skip ci]
anylog-ci-bot[bot] Jun 30, 2026
6f31945
Fix deployment scripts 2.0
mdavidson58 Jun 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,40 @@ layout: page
---

## Unreleased
<!-- last-processed: 4f8345a (2026-04-29) -->
<!-- last-processed: 14a735a -->

<!-- os-dev: 14a735a (2026-06-30) -->

* **Ori Shadmon** (2026-06-30)
* General: run schedule -> schedule
* Southbound / Monitoring: run schedule -> schedule; missing comma

<!-- os-dev: 1eac7db (2026-06-29) -->

* **Ori Shadmon** (2026-06-29)
* Node deployment / Policies: cluster name

<!-- os-dev: 60c299c (2026-06-29) -->

* **Ori Shadmon** (2026-06-29)
* General: water plant was missing variables integrated into it

<!-- os-dev: bf794d5 (2026-06-23) -->

### [bf794d5] · 2026-06-23 (latest)

| Date | Commit | Author | Summary |
|------|--------|--------|---------|
| 2026-06-22 | — | Ori Shadmon | Removed customer- and Ori-specific files (Archive, Customers, Test) |
| 2026-06-22 | — | Ori Shadmon | Smart city data generator reorg — improved MQTT logic, notifications, node monitoring + param configs |
| 2026-06-22 | — | Ori Shadmon | Node deployment — zero-touch support, node/cluster naming rework, monitoring policy integration |
| 2026-06-22 | — | Ori Shadmon | Node deployment / Database — operator helpers, monitoring DB creation, PSQL support |
| 2026-06-22 | — | Ori Shadmon | Node deployment / Policies — cluster numbering and naming fixes, monitoring policy simplification |
| 2026-06-22 | — | Ori Shadmon | Southbound / Industrial — Modbus mapping logic |
| 2026-06-22 | — | Ori Shadmon | Southbound / Monitoring — node monitoring, zero-touch support, syslog and Docker monitoring |
| 2026-06-22 | — | Ori Shadmon | Docker — working docker builder |
| 2026-06-22 | — | Ori Shadmon | General — file naming, image builder command, versioning, changelog cleanup |
| 2026-06-19 | — | pintomax | Sample scripts — fixed waste plan notifications |

<!-- Developers: add bullets below as changes land in your branch -->

Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM busybox

COPY . deployment-scripts/

CMD ["sh", "-c", "mkdir -p /target && cp -a /deployment-scripts/. /target/ && echo 'deployment-scripts copied to volume'"]
81 changes: 81 additions & 0 deletions archive/aggregation.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#------------------------------------------------------------------------------------------------#
# The following provides a simple set of commands to run aggregation against the data #
# In addition, there's an option save a summary of the data every X time frame, as opposed to #
# as opposed to all the data as it comes in... #
# #
# This (sample) code is used with OPC-UA and the default MQTT example, if enabled. The code can #
# also be used with user-defined data sources if desired. A more comprehensive, python-based #
# option can be found in deployment-scripts/aggregations #
# URL: https://github.com/AnyLog-co/documentation/blob/master/aggregations.md #
# #
# Note: if !enable_aggregations isn't enabled script will not run #
#------------------------------------------------------------------------------------------------#
# process !local_scripts/sample-scripts/aggregations.al

on error ignore
if !aggregation_policy then config from policy where id = !aggregation_policy
else if not !enable_aggregation then goto end-script

:enable-aggregations:
#-----------------------------------------------------------------------------#
# Aggregation functions summarize streaming data over defined time intervals. #
#-----------------------------------------------------------------------------#
on error goto enable-aggregations-error
<set aggregation where
dbms=!aggregations_dbms and
table=!aggregations_table and
intervals=!aggregations_intervals and
time=!aggregations_time and
time_column=!aggregation_time_column and
value_column=!aggregation_value_column>


:config-ingestion:
#-----------------------------------------------------------------------------#
# modify the ingestion frequency of aggregation tables in the local database.#
#-----------------------------------------------------------------------------#
on error call config-ingestion-error
if !enable_ingest_aggregations == true then
<do set aggregation ingest where
dbms=!aggregations_table and
table=!aggregations_table and
source = !ingest_raw_data and
derived = !ingest_aggregations>
# do get aggregation ingest


#:configure-encoding:
#-----------------------------------------------------------------------------#
# Apply encoding on the values assigned to each time interval #
#-----------------------------------------------------------------------------#
on error call configure-encoding-error
if !enable_encoding and !encoding_tolerance then
do set aggregation encoding where
dbms=!aggregations_dbms and
table=!aggregations_table and
value_column=!aggregation_value_column and
encoding = !encoding_type and
tolerance = !encoding_tolerance>
else if !enable_encoding then
<do set aggregation encoding where
dbms=!aggregations_dbms and
table=!aggregations_table and
value_column=!aggregation_value_column and
encoding = !encoding_type>



:end-script:
end script

:enable-aggregations-error:
echo "Failed to initiate aggregations for default logical database"
goto end-script

:config-ingestion-error:
echo "Failed to configure ingestion"
return

:configure-encoding-error:
echo "Failed to configure encoding"
return
37 changes: 37 additions & 0 deletions archive/config_threshold.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#----------------------------------------------------------------------------------------------------------------------#
# Set buffer threshold
#----------------------------------------------------------------------------------------------------------------------#
# process !local_scripts/policies/config_threshold.al

if !debug_mode == true then

:set-params:
if !debug_mode == true then print "Set buffer threshold"
threshold_dbms = ""
threshold_table = ""

on error goto threshold-error
if !threshold_dbms and !threshold_table then
<do set buffer threshold where
dbms=!threshold_dbms and table=!threshold_table and
time=!threshold_time and
volume=!threshold_volume and
write_immediate=!write_immediate>
if !threshold_dbms and not !threshold_table then
<do set buffer threshold where
dbms=!threshold_dbms and
time=!threshold_time and
volume=!threshold_volume and
write_immediate=!write_immediate>
if not !threshold_dbms and not !threshold_table then
<do set buffer threshold where
time=!threshold_time and
volume=!threshold_volume and
write_immediate=!write_immediate>

:end-script:
end script

:threshold-error:
echo "Failed to set threshold"
goto end-script
92 changes: 92 additions & 0 deletions archive/connect_networking.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Connect to TCP, REST and Broker (if configured) using default params
#----------------------------------------------------------------------------------------------------------------------#
# process !local_scripts/connect_networking.al

on error ignore
set debug off
if !debug_mode == true then

if !overlay_ip then goto overlay-tcp-networking

:tcp-networking:
if !debug_mode == true then print "Start TCP communication service"

on error goto tcp-networking-error
<run tcp server where
external_ip=!external_ip and external_port=!anylog_server_port and
internal_ip=!ip and internal_port=!anylog_server_port and
bind=!tcp_bind and threads=!tcp_threads>

:rest-networking:
if !debug_mode == true then print "Start REST communication service"

on error goto rest-networking-error
<run rest server where
external_ip=!external_ip and external_port=!anylog_rest_port and
internal_ip=!ip and internal_port=!anylog_rest_port and
bind=!rest_bind and threads=!rest_threads and timeout=!rest_timeout>

if not !anylog_broker_port then goto end-script

:broker-networking:
if !debug_mode == true then print "Start Message Broker service"

on error goto broker-networking-error
<run message broker where
external_ip=!external_ip and external_port=!anylog_broker_port and
internal_ip=!ip and internal_port=!anylog_broker_port and
bind=!broker_bind and threads=!broker_threads>
goto end-script


:overlay-tcp-networking:
if !debug_mode == true then print "Start TCP communication service"

on error goto tcp-networking-error
<run tcp server where
external_ip=!ip and external_port=!anylog_server_port and
internal_ip=!overlay_ip and internal_port=!anylog_server_port and
bind=!tcp_bind and threads=!tcp_threads>

:overlay-rest-networking:
if !debug_mode == true then print "Start REST communication service"

on error goto rest-networking-error
<run rest server where
external_ip=!ip and external_port=!anylog_rest_port and
internal_ip=!overlay_ip and internal_port=!anylog_rest_port and
bind=!rest_bind and threads=!rest_threads and timeout=!rest_timeout>

if not !anylog_broker_port then goto end-script

:overlay-broker-networking:
if !debug_mode == true then print "Start Message Broker service"

on error goto broker-networking-error
<run message broker where
external_ip=!ip and external_port=!anylog_broker_port and
internal_ip=!!overlay_ip and internal_port=!anylog_broker_port and
bind=!broker_bind and threads=!broker_threads>
goto end-script

:end-script:
end script

:terminate-scripts:
exit scripts

:tcp-networking-error:
print "Error: Failed to connect to TCP with IP address - unable to continue deployment process"
goto terminate-scripts

:rest-networking-error:
print "Error: Failed to connect to REST with IP address - unable to continue deployment process"
goto terminate-scripts

:broker-networking-error:
print "Error: Failed to connect to Message Broker with IP address - will continue deployment without Message Broker"
do goto end-script




Loading