I have written my own node, which should copy files into several directories. In terms of function, there are no problems. However, the file system admin reports that hundreds of login and logoff events per second are registered on the file server during a run. Since these events have to be saved, the admin asked me to reduce the number of events.
In fact, I'm working on relatively few files. There should be about 30 files per minute. Nevertheless, hundreds of login and logoff events are generated.
I only use the standard functions of nodejs (fs.lstatSync, fs.accessSync, fs.readdir, fs.statSync, fs.createWriteStream, fs.copyFileSync, fs.unlinkSync, ...). I think that every function call creates a login and a logoff event.
Is it possible to cash this authorization? Is it possible to use the authorization of the main process for the file functions? The main process of NodeRed runs on a Windows server as a service in the context of its own user. The file system to be accessed is accessed via a network (UNC) and is based on a Windows server. The NodeRed server is not the same as the file server.
Are there any options to reduce the permanent login and logout to the file server to an absolute minimum?