Hi all,
I am working on a app with a lot of statistics in it which needs parsing and processing on a daily basis and the way I have it set up now is, I run a nightly Aware process that parse and process all data (per tenant and there could be quite a lot of data per tenant) and the Aware process consists of various sub processes that parse data and count etc. stats. The Aware process has ca 10 sub processes and each sub processes have a lot of their own sub processes doing stuff so it´s quite complex.
The Aware process etc. works flawlessly in testing but I don´t have any experience with heavy and long processes so I am a bit concerned about it working correctly. The stats are a crucial part of the app so need to be working and processed flawlessly.
I have a couple of questions and would appreciate some feedback:
- Does anyone have any experience with running heavy and long processes on a daily basis?
- If the process works flawlessly in testing, it would be safe to assume it also works flawlessly every night (or?). I am thinking about normal operations of course and not taking into account if the data center explode or whatever other highly unlikely scenario.
- Is it better to run separate nightly processes i.e divide the monster process up into 1 process at 2am, 1 process at 3 am etc. or is it OK to run it all in 1 go at e.g 2am? The server would not have any user logged on at that time so the server should have enough resources to run a heavy/long process.
- Is the scheduler 100% reliable or should I build in some check e.g main process is scheduled to run at 2am, do a check at 4am to make sure it really ran and if not, run in then.
- When running nightly processes like these, would it be a good idea to build in some error flags notifying the administrator? (and possibly halting the steps after the error in the process).
- What are the recommended server memory allocations IF different from "normal" recommendations?
- Anything else I can configure or optimize on the server, in the DB etc. etc. to make sure heavy and long processes run smoothly?
- Anything else to think about?
Thanks in advance.