Examples
Example 1
Given the above configuration, and assuming the same aggregator is used for all messages, consider the following case in which greylisting will be activated:
Time | Messages Content | Attempt Number | Result | Notes |
---|---|---|---|---|
12:00 | Test 1 | 1 | java.net.SocketTimeoutException: Read timed out | First timeout. Failure counter is set to 1. |
12:01 | Test 1 | 2 | java.net.SocketTimeoutException: Read timed out | Second timeout within ten minutes. Failure counter is incremented to 2. |
12:02 | Test 1 | 3 | java.net.SocketTimeoutException: Read timed out | Third timeout within ten minutes. Failure counter is incremented. Failure threshold of 3 is reached and greylisting is activated. |
12:04 | Test 2 | 1 | Greylisted | Message fails due to greylisting. |
12:05 | Test 2 | 2 | Greylisted | Message fails due to greylisting. |
12:06 | Test 2 | 3 | Greylisted | Message fails due to greylisting. |
12:15 | Test 3 | 1 | Success | More that 10 minutes has lapsed since Greylisting was activated. Normal routing is resumed. |
Example 2
Given the above configuration, and assuming the same aggregator is used for all messages, consider the following case in which greylisting won't be activated:
Time | Messages Content | Attempt Number | Result | Notes |
---|---|---|---|---|
12:00 | Test 1 | 1 | java.net.SocketTimeoutException: Read timed out | First timeout. Failure counter is set to 1. |
12:01 | Test 1 | 2 | java.net.SocketTimeoutException: Read timed out | Second timeout within ten minutes. Failure counter is incremented to 2. |
12:02 | Test 1 | 3 | Success | Aggregator recovers and message is sent successfully. |
12:12 | Test 2 | 1 | java.net.SocketTimeoutException: Read timed out | More than ten minutes has lapsed since last failure implying the failure counter has since been reset to 0. Failure counter is incremented to 1. |
12:13 | Test 2 | 2 | java.net.SocketTimeoutException: Read timed out | Second timeout within ten minutes. Failure counter is incremented to 2. |
12:13 | Test 2 | 3 | Success | Aggregator recovers and message is sent successfully. |
Add Comment