I want to make a Windows Azure application as fault-resistant as possible and I need to be able to make roles crash intentionally to test how the whole application recovers from such crashes.
I guess I could insert code right into role that would obtain a random number and decide to crash with some rather low probability. The real problem is
if( isTimeToCrash() ) {
//what exactly do I do here?
}
how to crash a role once I decide it is time.
How do I reliably crash an Azure role intentionally?