Page 1 of 1
Rules and feeders
Posted: Mon May 18, 2009 9:14 am
by jonathan.d
My question mainly revolves around the way TM1 engine treats rules and feeders when the server loads.
Is it on server startup only, feeder flags are put in place where applicable and are only really looked into on request of a value by a user after which the requested value then sits in memory?
Also, what would be the safest way to make changes to rules and feeders for a large model after it sits in memory?
Would saving changed rule files which are fed from serveral cubes lock the entire server, leaving it to get stuck in an infinite loop?
Re: Rules and feeders
Posted: Mon May 18, 2009 9:29 am
by Steve Rowe
Feeders are updated when
The server is brought up,
Data is entered,
Rules are saved
A cube is reloaded into memory.
are only really looked into on request of a value by a user after which the requested value then sits in memory
Broadly correct.
Also, what would be the safest way to make changes to rules and feeders for a large model after it sits in memory?
You need to use the rules editor really I don't think there is another option, this will force the system to recompile all the feeders that originate in that rule sheet and can take a very long time to save if this is the "central" cube, this will lock your whole server. It's important to note that rule saveing doesn't clear feeders from a cube, so if you change a feeder the flags from the old version of the feeder will be present in the cube. This can lead to odd results... The only way to clear feders is to restart the server (100% good result) or unloading and reloading a cube which can be very awkward in a muli-cube system.
Would saving changed rule files which are fed from serveral cubes lock the entire server, leaving it to get stuck in an infinite loop?
No
HTH
Re: Rules and feeders
Posted: Mon May 18, 2009 3:42 pm
by Steve Vincent
RE: the last point - not unless the feeders were screwed up and made the server try to feed too much, in which case it'll lock for quite a while then eventually the server crashes when it runs out of memory. Been there, done that, learnt the lesson

Re: Rules and feeders
Posted: Tue May 19, 2009 2:42 am
by Gregor Koch
just a slight adjustment....
Feeders are also reprocessed when executing the TI function CubeProcessFeeders.
Could be helpfull.
Re: Rules and feeders
Posted: Tue May 19, 2009 10:29 am
by jonathan.d
Appreciate everyones input.