Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved stability for a large number of events #2618

Closed
3 tasks done
Tracked by #2546
Limraj opened this issue Jul 12, 2023 · 0 comments
Closed
3 tasks done
Tracked by #2546

Improved stability for a large number of events #2618

Limraj opened this issue Jul 12, 2023 · 0 comments
Assignees
Milestone

Comments

@Limraj
Copy link
Collaborator

Limraj commented Jul 12, 2023

Expected Behavior

  • Eliminating out of memory heap errors on the watchlist and when editing the publisher - with 1.5 million events, the memory demand did not exceed 500MB, previously 4GB would not be enough;
  • Improved application stability - +250 000 events does not lead to performance issues and crash; (the previous limit was about 5,000 events)
  • Faster up the loading for +250 000 events:
    Context Data Source - Data Points list, and Data Source Events list;
    Context Data Point - Data Point Details;
    Context Publisher - Edit Publisher;
    Context Graphical View - Alarm List Component;
    Context Alarms;
    Context Watchlists

Solution

  • Disabling the old cache - env.properties, same configuration, you can go back;
  • Added a limit for Pending Events - can be configured in runtime in system settings, on old and new ui;
  • Fixed sorting by active timestamp for Pending Events;

Specifications
Scada-LTS Version: <=2.7.5.3

@Limraj Limraj added this to the 2.7.5.4 milestone Jul 12, 2023
@Limraj Limraj changed the title Improved stability for lot of events Improved stability for a large number of events; Jul 12, 2023
@Limraj Limraj changed the title Improved stability for a large number of events; Improved stability for a large number of events Jul 12, 2023
Limraj added a commit that referenced this issue Jul 13, 2023
…cache in env.properties (abilit.cacheEnable=false); added parameter 'Event Pending Limit' configure from System Settings on new and old ui, in env.properties (event.pending.limit); deprecated class: EventDao; deprecated methods: EventService.getPendingSimpleEvents, EventDAO.getEventsForDataPoint, EventDAO.getPendingEvents, EventDAO.getPendingEvents; deprecated field: SystemSettingsDAO.DELETE_USERS; added methods: MangoEvent.isXidUnique, MangoEvent.getPendingEventsAlarmLevelMin, MangoEvent.getPendingEventsAlarmLevelMin, PendingEventsDAO.getPendingEvents with limit, EventDAO.getPendingEventsLimitAlarmLevelMin, EventDAO.getEventsForDataPointLimit, EventDAO.getPendingEventsLimit, EventDAO.getPendingEventsLimit; separation config old and new cache for PointEventDetectorCacheable in env.properties (eventdetector.cache.enabled), removed unless for selectPointEventDetectors;
@Limraj Limraj self-assigned this Jul 13, 2023
Limraj added a commit that referenced this issue Jul 13, 2023
…rgument on forceDisabledCache in method EventService.getPendingEventsAlarmLevelMin; fixed EventsController.getData
Limraj added a commit that referenced this issue Jul 18, 2023
…er 'Enabled Event Pending Cache' to System Settings old and new ui;
Limraj added a commit that referenced this issue Aug 7, 2023
…ity_for_a_large_number_of_events

#2618 Improved stability for a large number of events - disabled old …
@Limraj Limraj closed this as completed Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant