Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

Help with iRule to cut session without activity

MaxMedov
Cirrostratus
Cirrostratus

Hi,
I need to disable a pool member by Rest API.
I would appreciate for help with an iRule to do this:
The situation - I still have clients who have current active sessions with this pool member (in this case, it's another VIP in the POOL)
I need to check some parameters in this session, like the header get/post or something else, to keep this session alive until the requests are finished. If there is no activity on the open session for X time (or any other suggestions?), I want to drop this session.
In this situation, this client will route to the next pool member when performing a new session.
Thank you!

BTW if you have another elegant solution for that, I would be happy to hear 🙂

1 ACCEPTED SOLUTION

Paulius
MVP
MVP

@MaxMedov If the connection is truely idle the TCP profile associated to your virtual server should close these connections within 5 minutes by default and can be adjusted lower or higher depending on your needs. It is always recommended to create a new TCP profile with your changes and configure the default TCP profile as the Parent Profile. This is the cleanest and easiests way to close idle connections on a virtual server.

View solution in original post

2 REPLIES 2

Paulius
MVP
MVP

@MaxMedov If the connection is truely idle the TCP profile associated to your virtual server should close these connections within 5 minutes by default and can be adjusted lower or higher depending on your needs. It is always recommended to create a new TCP profile with your changes and configure the default TCP profile as the Parent Profile. This is the cleanest and easiests way to close idle connections on a virtual server.

MaxMedov
Cirrostratus
Cirrostratus

Ok thank you @Paulius !