Skip to content

Commit

Permalink
Version 0.35-alpha.
Browse files Browse the repository at this point in the history
  • Loading branch information
riclolsen committed Jun 14, 2024
1 parent 84cb12b commit 9b82319
Show file tree
Hide file tree
Showing 10 changed files with 76 additions and 46 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ To provide an easy to use, fully-featured, scalable, and portable SCADA/IIoT-I4.
* MongoDB as the real-time core database, persistence layer, config store, SOE historian.
* Event-based realtime async data processing with MongoDB Change Streams.
* Portability and modular interoperability over Linux, Windows, Mac OSX, x86/64, ARM.
* Windows installer available in the [releases section](https://github.com/riclolsen/json-scada/releases/tag/V0.34-alpha).
* Windows installer available in the [releases section](https://github.com/riclolsen/json-scada/releases/tag/V0.35-alpha).
* Unlimited tags, servers, and users.
* Horizontal scalability, from a single computer to big clusters (MongoDB-sharding), Docker containers, VMs, Kubernetes, cloud, or hybrid deployments.
* Modular distributed architecture. Lightweight redundant data acquisition nodes can connect securely over TLS to the database server. E.g. a Raspberry PI can be a data acquisition node.
Expand Down Expand Up @@ -82,7 +82,7 @@ To provide an easy to use, fully-featured, scalable, and portable SCADA/IIoT-I4.
## Documentation

* [Generic Install Guide](https://github.com/riclolsen/json-scada/blob/master/docs/install.md)
* [Windows Installer](https://github.com/riclolsen/json-scada/releases/tag/V0.34-alpha)
* [Windows Installer](https://github.com/riclolsen/json-scada/releases/tag/V0.35-alpha)
* [RedHat/Rocky Linux Installer](https://github.com/riclolsen/json-scada/blob/master/docs/install.md#rhel94-and-compatible-systems-automated-installation)
* [Docker Demo](https://github.com/riclolsen/json-scada/blob/master/demo-docker/README.md)
* [Schema Documentation](https://github.com/riclolsen/json-scada/blob/master/docs/schema.md)
Expand Down Expand Up @@ -152,7 +152,7 @@ To provide an easy to use, fully-featured, scalable, and portable SCADA/IIoT-I4.
- [x] Windows Installer
- [x] Online Demo
- [x] Docker Demo (docker-compose.yaml scripts)
- [x] Install Script for RedHat/Rocky 9.4 Linux
- [x] Install Script for RedHat/Rocky 9.4 Linux x86-64 and arm64
- [ ] Linux Image / VM
- [x] Supervisor (Linux process manager) examples
- [ ] InfluxDB Integration
Expand Down
6 changes: 3 additions & 3 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ To provide an easy to use, fully-featured, scalable, and portable SCADA/IIoT-I4.
* MongoDB as the real-time core database, persistence layer, config store, SOE historian.
* Event-based realtime async data processing with MongoDB Change Streams.
* Portability and modular interoperability over Linux, Windows, Mac OSX, x86/64, ARM.
* Windows installer available in the [releases section](https://github.com/riclolsen/json-scada/releases/tag/V0.34-alpha).
* Windows installer available in the [releases section](https://github.com/riclolsen/json-scada/releases/tag/V0.35-alpha).
* Unlimited tags, servers, and users.
* Horizontal scalability, from a single computer to big clusters (MongoDB-sharding), Docker containers, VMs, Kubernetes, cloud, or hybrid deployments.
* Modular distributed architecture. Lightweight redundant data acquisition nodes can connect securely over TLS to the database server. E.g. a Raspberry PI can be a data acquisition node.
Expand Down Expand Up @@ -82,7 +82,7 @@ To provide an easy to use, fully-featured, scalable, and portable SCADA/IIoT-I4.
## Documentation

* [Generic Install Guide](docs/install.md)
* [Windows Installer](https://github.com/riclolsen/json-scada/releases/tag/V0.34-alpha)
* [Windows Installer](https://github.com/riclolsen/json-scada/releases/tag/V0.35-alpha)
* [RedHat/Rocky Linux Installer](docs/install.md#rhel94-and-compatible-systems-automated-installation)
* [Install Guide](docs/install.md)
* [Docker Demo](demo-docker/README.md)
Expand Down Expand Up @@ -152,7 +152,7 @@ To provide an easy to use, fully-featured, scalable, and portable SCADA/IIoT-I4.
- [x] Windows Installer
- [x] Online Demo
- [x] Docker Demo (docker-compose.yaml scripts)
- [x] Install Script for RedHat/Rocky 9.4 Linux
- [x] Install Script for RedHat/Rocky 9.4 Linux x86-64 and arm64
- [ ] Linux Image / VM
- [x] Supervisor (Linux process manager) examples
- [ ] InfluxDB Integration
Expand Down
60 changes: 31 additions & 29 deletions platform-windows/create_services.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@ echo Please execute it as administrator.
@echo off
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)

rem Create services, they will run in background independently of a logged user
REM Create services, they will run in background independently of a logged user

cd \json-scada\bin

rem POSTGRESQL
REM POSTGRESQL
C:\json-scada\platform-windows\postgresql-runtime\bin\pg_ctl.exe register -N JSON_SCADA_postgresql -D "C:\json-scada\platform-windows\postgresql-data"
nssm set JSON_SCADA_postgresql Start SERVICE_AUTO_START

rem GRAFANA (connected to local postgresql)
REM GRAFANA (connected to local postgresql)
nssm install JSON_SCADA_grafana "C:\json-scada\platform-windows\grafana-runtime\bin\grafana-server.exe"
nssm set JSON_SCADA_grafana AppDirectory "C:\json-scada\platform-windows\grafana-runtime\bin"
nssm set JSON_SCADA_grafana AppEnvironmentExtra GF_SERVER_DOMAIN="127.0.0.1" GF_SERVER_ROOT_URL="%(protocol)s://%(domain)s:80/grafana/" GF_SERVER_SERVE_FROM_SUB_PATH="false" GF_AUTH_PROXY_ENABLED="true" GF_AUTH_PROXY_ENABLE_LOGIN_TOKEN="true" GF_AUTH_DISABLE_SIGNOUT_MENU="true" GF_AUTH_PROXY_WHITELIST="127.0.0.1" GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION="true" GF_SERVER_HTTP_ADDR="127.0.0.1" GF_SERVER_ENFORCE_DOMAIN="true" GF_SERVER_ENABLE_GZIP="true" GF_ANALYTICS_REPORTING_ENABLED="false" GF_ANALYTICS_CHECK_FOR_UPDATES="false" GF_SECURITY_ALLOW_EMBEDDING="true" GF_DATABASE_TYPE="postgres" GF_DATABASE_NAME="grafanaappdb" GF_DATABASE_HOST="127.0.0.1" GF_DATABASE_USER="postgres" GF_DATABASE_PASSWORD=""
REM nssm set JSON_SCADA_grafana AppStdout "C:\json-scada\log\grafana-stdout.log"
REM nssm set JSON_SCADA_grafana AppStderr "C:\json-scada\log\grafana-stderr.log"
nssm set JSON_SCADA_grafana Start SERVICE_AUTO_START
nssm set JSON_SCADA_grafana Start SERVICE_DELAYED_AUTO_START

rem METABASE (connected to local postgresql)
REM METABASE (connected to local postgresql)
nssm install JSON_SCADA_metabase "C:\json-scada\platform-windows\jdk-runtime\bin\java" -jar "C:\json-scada\platform-windows\metabase-runtime\metabase.jar"
nssm set JSON_SCADA_metabase AppDirectory "C:\json-scada\platform-windows\metabase-runtime"
nssm set JSON_SCADA_metabase AppEnvironmentExtra MB_JETTY_PORT="3001" MB_DB_TYPE="postgres" MB_DB_DBNAME="metabaseappdb" MB_DB_PORT="5432" MB_DB_USER="postgres" MB_DB_PASS="" MB_DB_HOST="localhost" MB_CHECK_FOR_UPDATES="false"
rem the next option is for Metabase pro/enterprise only
rem nssm set JSON_SCADA_metabase AppEnvironmentExtra MB_JWT_ENABLED="true"
REM the next option is for Metabase pro/enterprise only
REM nssm set JSON_SCADA_metabase AppEnvironmentExtra MB_JWT_ENABLED="true"
nssm set JSON_SCADA_metabase Start SERVICE_DELAYED_AUTO_START

rem MONGODB
REM MONGODB
nssm install JSON_SCADA_mongodb "C:\json-scada\platform-windows\mongodb-runtime\bin\mongod.exe" --config "c:\json-scada\platform-windows\mongodb-conf\mongod.cfg"
nssm set JSON_SCADA_mongodb Start SERVICE_AUTO_START

Expand Down Expand Up @@ -60,8 +60,8 @@ REM CHOOSE ONE: server_realtime (no user control) or server_realtime_auth (token
REM nssm install JSON_SCADA_server_realtime "C:\json-scada\platform-windows\nodejs-runtime\node.exe" "C:\json-scada\src\server_realtime\index.js" NOAUTH
REM nssm set JSON_SCADA_server_realtime AppDirectory "C:\json-scada\src\server_realtime"
REM nssm set JSON_SCADA_server_realtime Start SERVICE_AUTO_START
rem Use environment variables to connect (for reading) to PostgreSQL historian (https://www.postgresql.org/docs/current/libpq-envars.html)
rem nssm set JSON_SCADA_server_realtime AppEnvironmentExtra PGHOSTADDR=127.0.0.1 PGPORT=5432 PGDATABASE=json_scada PGUSER=json_scada PGPASSWORD=json_scada
REM Use environment variables to connect (for reading) to PostgreSQL historian (https://www.postgresql.org/docs/current/libpq-envars.html)
REM nssm set JSON_SCADA_server_realtime AppEnvironmentExtra PGHOSTADDR=127.0.0.1 PGPORT=5432 PGDATABASE=json_scada PGUSER=json_scada PGPASSWORD=json_scada

REM CREATE A RANDOM SECRET FOR JWT ENCRYPTION
setlocal EnableDelayedExpansion
Expand All @@ -82,19 +82,19 @@ nssm set JSON_SCADA_server_realtime_auth AppStdout C:\json-scada\log\server_real
nssm set JSON_SCADA_server_realtime_auth AppRotateOnline 1
nssm set JSON_SCADA_server_realtime_auth AppRotateBytes 10000000

rem Use environment variables to connect (for reading) to PostgreSQL historian (https://www.postgresql.org/docs/current/libpq-envars.html)
rem nssm set JSON_SCADA_server_realtime_auth AppEnvironmentExtra PGHOSTADDR=127.0.0.1 PGPORT=5432 PGDATABASE=json_scada PGUSER=json_scada PGPASSWORD=json_scada
REM Use environment variables to connect (for reading) to PostgreSQL historian (https://www.postgresql.org/docs/current/libpq-envars.html)
REM nssm set JSON_SCADA_server_realtime_auth AppEnvironmentExtra PGHOSTADDR=127.0.0.1 PGPORT=5432 PGDATABASE=json_scada PGUSER=json_scada PGPASSWORD=json_scada

nssm install JSON_SCADA_demo_simul "C:\json-scada\platform-windows\nodejs-runtime\node.exe" "C:\json-scada\src\demo_simul\index.js"
nssm set JSON_SCADA_demo_simul AppDirectory "C:\json-scada\src\demo_simul"
nssm set JSON_SCADA_demo_simul Start SERVICE_DEMAND_START

rem Service to send protocol data updates on mongodb to another JSON-SCADA instance (one-way via UDP)
REM Service to send protocol data updates on mongodb to another JSON-SCADA instance (one-way via UDP)
nssm install JSON_SCADA_mongofw "C:\json-scada\platform-windows\nodejs-runtime\node.exe" "C:\json-scada\src\mongofw\index.js"
nssm set JSON_SCADA_mongofw AppDirectory "C:\json-scada\src\mongofw"
nssm set JSON_SCADA_mongofw Start SERVICE_DEMAND_START

rem Service to receive protocol data updates from another JSON-SCADA instance (one-way via UDP)
REM Service to receive protocol data updates from another JSON-SCADA instance (one-way via UDP)
nssm install JSON_SCADA_mongowr "C:\json-scada\platform-windows\nodejs-runtime\node.exe" "C:\json-scada\src\mongowr\index.js"
nssm set JSON_SCADA_mongowr AppDirectory "C:\json-scada\src\mongowr"
nssm set JSON_SCADA_mongowr Start SERVICE_DEMAND_START
Expand All @@ -106,17 +106,17 @@ nssm set JSON_SCADA_alarm_beep AppRotateOnline 1
nssm set JSON_SCADA_alarm_beep AppRotateBytes 10000000
nssm set JSON_SCADA_alarm_beep Start SERVICE_AUTO_START

rem WARNING! This service has no security access control, use with care.
REM WARNING! This service has no security access control, use with care.
nssm install JSON_SCADA_config_server_excel "C:\json-scada\platform-windows\nodejs-runtime\node.exe" "C:\json-scada\src\config_server_for_excel\index.js"
nssm set JSON_SCADA_config_server_excel AppDirectory "C:\json-scada\src\config_server_for_excel"
nssm set JSON_SCADA_config_server_excel Start SERVICE_DEMAND_START
nssm set JSON_SCADA_config_server_excel AppEnvironmentExtra JS_CSEXCEL_IP_BIND=0.0.0.0 JS_CSEXCEL_HTTP_PORT=10001
rem JS_CSEXCEL_IP_BIND=127.0.0.1 to enable just local access

rem For use with OSHMI HMI Shell
rem nssm install JSON_SCADA_shell_api "C:\json-scada\platform-windows\nodejs-runtime\node.exe" "C:\json-scada\src\shell-api\shell-api.js"
rem nssm set JSON_SCADA_shell_api AppDirectory "C:\json-scada\src\shell-api"
rem nssm set JSON_SCADA_shell_api Start SERVICE_AUTO_START
REM Just for use with OSHMI HMI Shell
REM nssm install JSON_SCADA_shell_api "C:\json-scada\platform-windows\nodejs-runtime\node.exe" "C:\json-scada\src\shell-api\shell-api.js"
REM nssm set JSON_SCADA_shell_api AppDirectory "C:\json-scada\src\shell-api"
REM nssm set JSON_SCADA_shell_api Start SERVICE_AUTO_START

nssm install JSON_SCADA_process_rtdata "C:\json-scada\sql\process_pg_rtdata.bat"
nssm set JSON_SCADA_process_rtdata AppDirectory "C:\json-scada\sql"
Expand All @@ -127,8 +127,8 @@ rem nssm set JSON_SCADA_process_rtdata AppEnvironmentExtra PGHOSTADDR=127.0.0.1
nssm install JSON_SCADA_process_hist "C:\json-scada\sql\process_pg_hist.bat"
nssm set JSON_SCADA_process_hist AppDirectory "C:\json-scada\sql"
nssm set JSON_SCADA_process_hist Start SERVICE_AUTO_START
rem Use environment variables to connect (for writing) to PostgreSQL historian (https://www.postgresql.org/docs/current/libpq-envars.html)
rem nssm set JSON_SCADA_process_hist AppEnvironmentExtra PGHOSTADDR=127.0.0.1 PGPORT=5432 PGDATABASE=json_scada PGUSER=json_scada PGPASSWORD=json_scada
REM Use environment variables to connect (for writing) to PostgreSQL historian (https://www.postgresql.org/docs/current/libpq-envars.html)
REM nssm set JSON_SCADA_process_hist AppEnvironmentExtra PGHOSTADDR=127.0.0.1 PGPORT=5432 PGDATABASE=json_scada PGUSER=json_scada PGPASSWORD=json_scada

nssm install JSON_SCADA_php "c:\json-scada\platform-windows\nginx_php-runtime\php\php-cgi.exe" -b 127.0.0.1:9000 -c c:\json-scada\conf\php.ini
nssm set JSON_SCADA_php Start SERVICE_AUTO_START
Expand Down Expand Up @@ -228,14 +228,16 @@ nssm install JSON_SCADA_log_io_server "C:\json-scada\platform-windows\nodejs-run
nssm set JSON_SCADA_log_io_server AppDirectory "C:\json-scada\src\log-io"
nssm set JSON_SCADA_log_io_server AppEnvironmentExtra LOGIO_SERVER_UI_BUILD_PATH=C:\json-scada\src\log-io\ui\build
nssm set JSON_SCADA_log_io_server Start SERVICE_AUTO_START
rem set LOGIO_SERVER_UI_BUILD_PATH=C:\json-scada\src\log-io\ui\build

cd \json-scada\platform-windows\telegraf-runtime
REM set LOGIO_SERVER_UI_BUILD_PATH=C:\json-scada\src\log-io\ui\build

REM service for telegraf runtime
reg delete "HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\JSON_SCADA_telegraf_runtime" /f
C:\json-scada\platform-windows\telegraf-runtime\telegraf --service-name JSON_SCADA_telegraf_runtime --service-display-name JSON_SCADA_telegraf_runtime --config C:\json-scada\conf\telegraf.conf service install

rem Create scheduled task for log rotation (alternative log rotator), configure with logrotate.conf
rem Should stop services to force log file to close. See https://sourceforge.net/p/logrotatewin/wiki/LogRotate/
rem SCHTASKS /CREATE /SC DAILY /TN "MyTasks\JSON-SCADA logrotate task" /TR "C:\json-scada\bin\logrotate C:\json-scada\platform-windows\logrotate.conf" /ST 04:00
nssm install JSON_SCADA_telegraf_runtime "C:\json-scada\platform-windows\telegraf-runtime\telegraf.exe" "--config C:\json-scada\conf\telegraf.conf"
nssm set JSON_SCADA_telegraf_runtime AppDirectory "C:\json-scada\platform-windows\telegraf-runtime"
nssm set JSON_SCADA_telegraf_runtime Start SERVICE_AUTO_START
REM cd \json-scada\platform-windows\telegraf-runtime
REM c:\json-scada\platform-windows\telegraf-runtime\telegraf --service-display-name JSON_SCADA_telegraf_runtime --service-name JSON_SCADA_telegraf_runtime --config C:\json-scada\conf\telegraf.conf service install

REM Create scheduled task for log rotation (alternative log rotator), configure with logrotate.conf
REM Should stop services to force log file to close. See https://sourceforge.net/p/logrotatewin/wiki/LogRotate/
REM SCHTASKS /CREATE /SC DAILY /TN "MyTasks\JSON-SCADA logrotate task" /TR "C:\json-scada\bin\logrotate C:\json-scada\platform-windows\logrotate.conf" /ST 04:00
10 changes: 5 additions & 5 deletions platform-windows/json-scada.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ RequestExecutionLevel admin

;--------------------------------

!define VERSION "v.0.34"
!define VERSION_ "0.34.0.0"
!define VERSION "v.0.35"
!define VERSION_ "0.35.0.0"

Function .onInit
System::Call 'keexrnel32::CreateMutexA(i 0, i 0, t "MutexJsonScadaInstall") i .r1 ?e'
Expand Down Expand Up @@ -52,7 +52,7 @@ VIProductVersion ${VERSION_}
VIAddVersionKey ProductName "JSON SCADA"
VIAddVersionKey Comments "SCADA IIoT Software"
VIAddVersionKey CompanyName "Ricardo Olsen"
VIAddVersionKey LegalCopyright "Copyright 2020-2023 Ricardo L. Olsen"
VIAddVersionKey LegalCopyright "Copyright 2020-2024 Ricardo L. Olsen"
VIAddVersionKey FileDescription "JSON SCADA Installer"
VIAddVersionKey FileVersion ${VERSION}
VIAddVersionKey ProductVersion ${VERSION}
Expand Down Expand Up @@ -244,7 +244,7 @@ SetRegView 64
File /a "..\platform-windows\nssm.exe"
File /a "..\platform-windows\sounder.exe"
File /a "..\platform-windows\vc_redist.x64.exe"
File /a "..\platform-windows\dotnet-runtime-6.0.29-win-x64.exe"
File /a "..\platform-windows\dotnet-runtime-6.0.31-win-x64.exe"

; Visual C redist: needed for timescaledb
;ReadRegStr $0 HKLM "SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" "Major"
Expand All @@ -258,7 +258,7 @@ SetRegView 64
Sleep 1000
Exec '"$INSTDIR\platform-windows\vc_redist.x64.exe" /install /passive /quiet'
Sleep 1000
Exec '"$INSTDIR\platform-windows\dotnet-runtime-6.0.29-win-x64.exe" /install /passive /quiet'
Exec '"$INSTDIR\platform-windows\dotnet-runtime-6.0.31-win-x64.exe" /install /passive /quiet'

SetOutPath $INSTDIR\platform-windows\nodejs-runtime
File /a /r "..\platform-windows\nodejs-runtime\*.*"
Expand Down
28 changes: 28 additions & 0 deletions platform-windows/release_notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,34 @@ Inkscape+SAGE:

-------------------------------------------------------------------

Notes for version 0.35:

* Default login credentials: username=admin password=jsonscada.
* Metabase credentials: username=json@scada.com password=jsonscada123.
* Added timeseries 'hist' collection on MongoDB for historical archival.
* Fixed Telegraf service creation.
* Optimized mongo inserts and updates on cs_data_processor.
* Optimizations on Mongofw/Mongowr one-way replication processes.
* Inkscape+SAGE: new build based on 1.2-dev.
* PostgreSQL updated to 16.3-2.
* TimescaleDB updated to 2.15.2.
* Telegraf runtime updated to 1.31.0.
* Nodejs runtime updated to 20.14.0.
* Dotnet runtime updated to 6.0.31.
* Chromium updated to 126.0.6478.57.

Requirements and recommendations:

* Windows 10/11 64 bits or Server >=2019, Windows PowerShell. At least 20GB of free space in the "C:" drive.
* Administrative rights. corporate Windows policies may cause problems with the creation of services and the opening of TCP ports.
* Free TCP ports 6688, 6689, 27017, 5432, 80, 8080, 3000, 3001, 9000. Other ports may be required for optional services and protocols.
* If the server already has MongoDB, PostgreSQL, Grafana, Metabase, Nginx or another webserver, please uninstall, disable or watch out for possible conflicts.
* Do not update previously installed JSON-SCADA. Please uninstall previous JSON-SCADA versions before installing a new version.
* If using VirtualBox configure "paravirtualization interface"=KVM, otherwise Nodejs errors may occur.
* MongoDB requires AVX instructions on x86 CPU.

-------------------------------------------------------------------

Notes for version 0.34:

* Default login credentials: username=admin password=jsonscada.
Expand Down
2 changes: 1 addition & 1 deletion src/htdocs/i18n/messages_i18n-en_us.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
var Msg =
{
NomeProduto: '{json:scada}',
VersaoProduto: '0.34',
VersaoProduto: '0.35',

NomeVisorTelas: 'Display Viewer',
NomeVisorEventos: 'Events Viewer',
Expand Down
2 changes: 1 addition & 1 deletion src/htdocs/i18n/messages_i18n-pt_br.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
var Msg =
{
NomeProduto: '{json:scada}',
VersaoProduto: '0.34',
VersaoProduto: '0.35',

NomeVisorTelas: 'Visor de Telas',
NomeVisorEventos: 'Visor de Eventos',
Expand Down
2 changes: 1 addition & 1 deletion src/htdocs/i18n/messages_i18n-uk_ua.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
var Msg =
{
NomeProduto: '{json:scada}',
VersaoProduto: '0.34',
VersaoProduto: '0.35',

NomeVisorTelas: 'Перегляд ',
NomeVisorEventos: 'Події',
Expand Down
2 changes: 1 addition & 1 deletion src/htdocs/i18n/messages_i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
var Msg =
{
NomeProduto: '{json:scada}',
VersaoProduto: '0.34',
VersaoProduto: '0.35',

NomeVisorTelas: 'Display Viewer',
NomeVisorEventos: 'Events Viewer',
Expand Down
4 changes: 2 additions & 2 deletions src/mongofw/customized_module.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ async function backfillDequeue(db, Redundancy, MongoStatus) {
if (backfillArr.length === 0) return
const result = await db
.collection(BackfillDataCollectionName)
.insertMany(backfillArr)
Log.log('Backfill: Inserted ' + result.insertedCount + ' documents.')
.insertMany(backfillArr, { ordered: false, writeConcern: { w: 0 } })
// Log.log('Backfill: Inserted ' + result.insertedCount + ' documents.')
}

// dequeue changes and send via UDP
Expand Down

0 comments on commit 9b82319

Please sign in to comment.