Configure ports and port settings with the dscontrol port command.
>>-dscontrol--port--+-add--+-crossport--other_port---------------+-------+->< | +-stickytime--value-------------------+ | | +-cluster@port@server--reset--+-yes-+-+ | | | '-no--' | | | +-staletimeout--value-----------------+ | | +-weightbound--value------------------+ | | '-selectionalgorithm--+-connection-+--' | | +-affinity---+ | | '-conn+affin-' | +-set--+-cluster@port--repstrategy--+-both-------+-+-+ | | +-connection-+ | | | | +-affinity---+ | | | | '-none-------' | | | +-port--reset--+-yes-+----------------------+ | | | '-no--' | | | +-stickytime--value-------------------------+ | | +-staletimeout--value-----------------------+ | | '-weightbound--value------------------------' | +-remove--cluster@port-------------------------------+ +-report--cluster@port-------------------------------+ '-status--cluster@port-------------------------------'
Crossport affinity allows you to expand the affinity feature across multiple ports so that client requests received on different ports can still be sent to the same server for subsequent requests. For the crossport value, specify the other_port number for which you want to share the cross port affinity feature.
The value of staletimeout in number of seconds.
A number from 1–100 representing the maximum weight bound.
Specifies that the server selection is based on client affinity.
Specifies that the server selection is based on simple round-robin selection (default).
Specifies that connection and affinity records will be replicated between high availability partners. When the records are replicated, connection and affinity states are preserved so that the connections can continue even after takeover has taken place.
Replicate both connection and affinity records.
Replicate affinity records only.
Replicate connection records only.
No replication.
dscontrol port add cluster@port selectionalgorithm affinity
dscontrol port add 130.40.52.153@80+23
dscontrol port set 130.40.52.153@80 weightbound 10
dscontrol port set 130.40.52.153@80+23 stickytime 60
dscontrol port add 130.40.52.153@80 crossport 23
dscontrol port set 80 reset yes
dscontrol port remove 130.40.52.153@23
dscontrol port status 9.67.131.153@80
dscontrol port report 9.62.130.157@80
dscontrol port set 130.40.52.153@23 repstrategy connection