Forum Discussion

Herman2024's avatar
Herman2024
Icon for Cirrostratus rankCirrostratus
Jan 26, 2026
Solved

Can one create one virtual server with two pool members with multiple services running on it?

Hi, we have servers with multiple services running on it. Can we just create one virtual server with a customized port list. Can create a tcp port list under shared object? Can someone please advise?  thanks in advance!

  • something like this might work

    when CLIENT_ACCEPTED {
        switch -- [TCP::local_port] {
            80 {
                pool pool_80
            }
            8080 {
                pool pool_8080
            }
            8443 {
                pool pool_8443
            }
            default {
                reject
            }
        }
    }

     

8 Replies

  • Hi Herman2024​ 

    Yes you can do it but my question is why?
    In my opinion would be better to have separated Virtual Servers.
    What is the need you are trying solve?

    • Herman2024's avatar
      Herman2024
      Icon for Cirrostratus rankCirrostratus

      Hi Injeyan_Kostas​ , thanks for your advice. There are more than 10 services are running on the same server, so if creating one virtual server for each service, it looks a bit messy. Not only this server, we have other similar servers are running in this way (more than 10 services on the same server). So we consider to config simple virtual server. Will there be any performance issue? Thanks. 

      • Injeyan_Kostas's avatar
        Injeyan_Kostas
        Icon for Nacreous rankNacreous

        I understand but let me mention that if the team that will administrate this config isn't fully capable with F5 custom solutions there is a high chance to end with a mess.
        On top of shared object ports some proper irule will also be needed to separate services.
        But indeed is totaly feasible.
        Perfomance is not supposed to be impacted.