Eject entity from server when failure occurs
1 view (last 30 days)
Show older comments
Sander van den Heuvel
on 24 Nov 2020
Edited: Sander van den Heuvel
on 25 Nov 2020
Hi there,
On page 2-28 of the simevents documentation there is noted: "If you want to eject the current entity from the server upon a failure occurence, then you can use the preemption feature of the server to replace the current entity with a high-priority placeholder". This is a nice note, but I am unsure how to model such a situation when a failure is modeled in the same way as in the example on page 2-28 (via an entity gate)? How can the failure gate and the entity server communicate when a failure occurs and preempt the order that is processed at that moment from the server, give it a high priority and a residual processing time and send it back to the queue?
In the attachments you can find an example with explanation of what I am trying to achieve.
Thank you very much
0 Comments
Accepted Answer
Abdolkarim Mohammadi
on 24 Nov 2020
Generally speaking, failures are preempted entities that does not consume resources. They are generated from another entity generator of the same type of the main entities, but are generated in another route, so that they do not acquire resources. The routes of normal entities and failures are then combined with each other via Entity Input Switch block.
1 Comment
More Answers (0)
See Also
Categories
Find more on Discrete-Event Simulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!