immense / immense/Remotely

High load after running scripts

Open
#769 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
5.1k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
After running a script on 200 computers (even without the offline flag) the system load increases exponentially due to write burst on the sqlite3 database.
I needed to clear the table DeviceScriptRun to get back to normal.

**To Reproduce**
Steps to reproduce the behavior:
1. install the agent on more than a few clients
2. create a powershell script
3. run the script on the clients
4. you can reapeat step 3 to increase the load
5. see the server load going up and up beacuse of disk write

**Remotely Version**
server and agents on 2023.09.11.1010
OS: Docker on Ubuntu LTS 2204 and agents on Windows 10 Enterprise

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported workload: run a PowerShell script repeatedly across many agents and monitor server load and SQLite writes. Inspect how repeated runs populate the DeviceScriptRun table; the fix is done when comparable runs no longer cause escalating disk writes or system load.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, docker, powershell, sqlite
Domain
backend, databases, devops, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.