You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[feat]: create a warning if an instance has too many objects (#3070)
* create a warning if an instance has too many objects
* fix limit
* ensure hostname ist set in adapter tests too
---------
Co-authored-by: Bluefox <[email protected]>
Co-authored-by: Ingo Fischer <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,7 @@ The main configuration is stored in `iobroker-data/iobroker.json`. Normally, the
91
91
-[Error Reporting via ioBroker Sentry](#error-reporting-via-iobroker-sentry)
92
92
-[Notification System](#notification-system)
93
93
-[Disk space warnings](#disk-space-warnings)
94
+
-[Objects warn limit](#objects-warn-limit)
94
95
-[Controlling and monitoring of adapter processes](#controlling-and-monitoring-of-adapter-processes)
95
96
-[Multihost](#multihost)
96
97
-[TIERS: Start instances in an ordered manner](#tiers-start-instances-in-an-ordered-manner)
@@ -552,6 +553,12 @@ All three are optional and can be a string or null/undefined if omitted.
552
553
The js-controller will generate a notification of in the scope `system` and the category `diskSpaceIssues` on warning level, if your free disk space falls under a specified threshold.
553
554
By default, this threshold is 5 % of disk space. Via the state `system.host.<hostname>.diskWarning` you can override this level to any level between `0` and `100`.
554
555
556
+
### Objects warn limit
557
+
**Feature status:** New in 7.1.0
558
+
559
+
The js-controller will generate a notification of in the scope `system` and the category `numberObjectsLimitExceeded` on warning level, if your number of objects for an adapter instance exceed a specified threshold.
560
+
By default, this is set to `5000` objects. Via the state `system.host.adapter.<adapter>.<instance>.objectsWarnLimit` you can override this threshold to any positive number.
Copy file name to clipboardExpand all lines: packages/controller/io-package.json
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1310,6 +1310,38 @@
1310
1310
},
1311
1311
"regex": [],
1312
1312
"limit": 1
1313
+
},
1314
+
{
1315
+
"category": "numberObjectsLimitExceeded",
1316
+
"name": {
1317
+
"en": "The configured limit of objects for this adapter instance has been exceeded.",
1318
+
"de": "Das konfigurierte Limit an Objekten für diese Adapterinstanz wurde überschritten.",
1319
+
"ru": "Превышен настроенный лимит объектов для данного экземпляра адаптера.",
1320
+
"pt": "O limite configurado de objectos para esta instância de adaptador foi ultrapassado.",
1321
+
"nl": "De geconfigureerde limiet van objecten voor deze instantie van de adapter is overschreden.",
1322
+
"fr": "La limite d'objets configurée pour cette instance d'adaptateur a été dépassée.",
1323
+
"it": "È stato superato il limite di oggetti configurato per questa istanza dell'adattatore.",
1324
+
"es": "Se ha superado el límite configurado de objetos para esta instancia de adaptador.",
1325
+
"pl": "Skonfigurowany limit obiektów dla tej instancji adaptera został przekroczony.",
1326
+
"uk": "Перевищено ліміт об'єктів для цього екземпляра адаптера.",
1327
+
"zh-cn": "The configured limit of objects for this adapter instance has been exceeded."
1328
+
},
1329
+
"severity": "alert",
1330
+
"description": {
1331
+
"en": "This adapter instance has exceeded the configured limit of objects. Too many objects are often caused by misconfigurations or bugs. This can lead to massive performance issues. If this is expected, you can increase the limit for this adapter instance.",
1332
+
"de": "Diese Adapterinstanz hat das konfigurierte Limit an Objekten überschritten. Zu viele Objekte werden oft durch Fehlkonfigurationen oder Bugs verursacht. Dies kann zu massiven Performance-Problemen führen. Wenn dies zu erwarten ist, können Sie das Limit für diese Adapterinstanz erhöhen.",
1333
+
"ru": "Этот экземпляр адаптера превысил установленный лимит объектов. Слишком большое количество объектов часто вызвано неправильной конфигурацией или ошибками. Это может привести к серьезным проблемам с производительностью. Если это ожидаемо, вы можете увеличить лимит для этого экземпляра адаптера.",
1334
+
"pt": "Esta instância do adaptador excedeu o limite configurado de objectos. A existência de demasiados objectos é frequentemente causada por configurações incorrectas ou erros. Isto pode levar a grandes problemas de desempenho. Se isto for expetável, pode aumentar o limite para esta instância do adaptador.",
1335
+
"nl": "Deze instantie van de adapter heeft de geconfigureerde limiet van objecten overschreden. Te veel objecten worden vaak veroorzaakt door verkeerde configuraties of bugs. Dit kan leiden tot enorme prestatieproblemen. Als dit wordt verwacht, kun je de limiet voor deze adapterinstantie verhogen.",
1336
+
"fr": "Cette instance d'adaptateur a dépassé la limite d'objets configurée. Un trop grand nombre d'objets est souvent dû à une mauvaise configuration ou à des bogues. Cela peut entraîner d'importants problèmes de performance. Si cela est prévisible, vous pouvez augmenter la limite de cette instance d'adaptateur.",
1337
+
"it": "L'istanza di questo adattatore ha superato il limite di oggetti configurato. Un numero eccessivo di oggetti è spesso causato da configurazioni errate o da bug. Ciò può causare gravi problemi di prestazioni. Se questo è previsto, è possibile aumentare il limite per questa istanza dell'adattatore.",
1338
+
"es": "Esta instancia de adaptador ha superado el límite configurado de objetos. El exceso de objetos suele deberse a errores o errores de configuración. Esto puede conducir a problemas de rendimiento masivos. Si esto es lo esperado, puedes aumentar el límite para esta instancia de adaptador.",
1339
+
"pl": "Ta instancja adaptera przekroczyła skonfigurowany limit obiektów. Zbyt duża liczba obiektów jest często spowodowana błędną konfiguracją lub błędami. Może to prowadzić do poważnych problemów z wydajnością. Jeśli jest to oczekiwane, można zwiększyć limit dla tej instancji adaptera.",
1340
+
"uk": "Цей екземпляр адаптера перевищив встановлений ліміт об'єктів. Надмірна кількість об'єктів часто спричинена неправильними конфігураціями або помилками. Це може призвести до значних проблем з продуктивністю. Якщо це очікується, ви можете збільшити ліміт для цього екземпляра адаптера.",
1341
+
"zh-cn": "This adapter instance has exceeded the configured limit of objects. Too many objects are often caused by misconfigurations or bugs. This can lead to massive performance issues. If this is expected, you can increase the limit for this adapter instance."
0 commit comments