Microgateway plugin test

Hi All, I am currently learning to use microgateway and I have installed a couple of plugins such as Qouta and Spike Arrest. The installation is on my local pc and I am using port 8000. when I installed those plugins I used a small allowable figure such as

spikearrest:

timeUnit: minute

allow: 3

bufferSize: 5

When I tried to set the alert by calling the micro gateway api i have failed to trigger the spike arrest mechanism no matter how fast I do it. The question is how do I check the plugin status to see if it's been installed correctly. if it is, the reason for not working is because I am calling it using the same machine and therefore bypass the tripping mechanism?

0 3 241
3 REPLIES 3

Former Community Member
Not applicable

If start MG in debug mode, you will see if the plugin was loaded.

The spike arrests' counter is one per work process. So each worker process will allow 3 per minute in your example. For testing, you might want to set buffer to 0.

You can start the MG using DEBUG=* edgemicro start ...

edgemicro status will tell you how many worker processes you have.

You can also pass the --processes 1 option to set just one worker process

Hi Ivan,

I encountered the same problem (bufferSize zero in my case). Have you come to a solution?