Forum Discussion
iRule to send multipart file upload to a different pool
Hi Cathy
Thanks for your response.
The upload is being handled by an Ajax component (PrimeFaces).
Using Fiddler on the client side I can see the individual HTTP POSTs which contains the following headers
- Connection: Keep-Alive
- Accept-Encoding: gzip, deflate
- X-Requested-With: XMLHttpRequest
- Content-Disposition: attachment; filename="a_big_file.zip"
- Content-Length: 10001628
- Content-Range: bytes 0-9999999/1462538240
- Content-Type: multipart/form-data; boundary=---------------------------7e11932a13e0402
Here are the entries from /var/log/ltm for the first 4 HTTP POSTs that I see in Fiddler. You can see the first request/chunk has the pool changed, but the subsequent ones use the default pool. I only see an a single HTTP_REQUEST event, which is where the logic to select pools currently is.
Aug 9 09:52:42 F5XD01 debug tmm[10989]: Rule /Common/irule_file_upload_check : file upload, change pool Aug 9 09:52:42 F5XD01 info tmm[10989]: Rule /Common/LB_events : member selected: /Common/pool_file_upload 10.161.22.45 10099 Aug 9 09:52:42 F5XD01 info tmm[10989]: Rule /Common/LB_events : server connected Aug 9 09:52:42 F5XD01 debug tmm[10989]: Rule /Common/irule_file_upload_check : request send
Aug 9 09:52:44 F5XD01 info tmm[10989]: Rule /Common/LB_events : member selected: /Common/pool_default_app 10.161.22.45 80 Aug 9 09:52:44 F5XD01 debug tmm[10989]: Rule /Common/irule_file_upload_check : request send
Aug 9 09:52:46 F5XD01 info tmm[10989]: Rule /Common/LB_events : member selected: /Common/pool_default_app 10.161.22.45 80 Aug 9 09:52:46 F5XD01 debug tmm[10989]: Rule /Common/irule_file_upload_check : request send
Aug 9 09:52:47 F5XD01 info tmm[10989]: Rule /Common/LB_events : member selected: /Common/pool_default_app 10.161.22.45 80 Aug 9 09:52:47 F5XD01 debug tmm[10989]: Rule /Common/irule_file_upload_check : request send
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com