Forum Discussion

Robert_47833's avatar
Robert_47833
Icon for Altostratus rankAltostratus
Dec 02, 2013

how to optimize https monitor

Hi,dear F5 Dev currently there is a https monitor which has a receive string is http payload

 

I want to know if I set receive string as status code can optimize the memory usage of bigd this is my logic:

 

status code is the first line of the https response in http head ,but http payload is deeper

 

Does it make sense?

 

8 Replies

  • It does. You could use just '200' for instance. I'd rather check something in the payload though, to ensure the application itself (rather than just the web server) is working.

     

  • Hi, would u like to share how F5 match this receive string? it will check from 1st byte to a fixed length ,and then from last one to next fixed length?

     

  • Strictly speaking it's not better, it's simply what you asked for. It'll probably save a few CPU cycles but as I said, I'd rather be checking the payload for something useful which indicates the application is working.

     

  • Thanks very much yes,I only need to check 200 status code for memory wise. how does F5 monitor check the response from backend server? why it save a few cpu cycles.

     

  • It'll search the entire response for the receive string you configure. Specifying just '200' will probably save a few CPU cycles as it'll match at the very start of the response text rather than the program having to continue searching further into the body.

     

  • hmm,but it will decrypt all https response ,then search,right? or it searches first x bytes, and then another x bytes?

     

  • It probably decrypts the whole lot and then does the search yes although this is not documented anywhere so it's just an assumption.