IC SunsetThe developerWorks Connections platform will be sunset on January 2, 2020. This forum will no longer be available unless an extension has been requested. More details available on our FAQ.
Topic
  • 3 replies
  • Latest Post - ‏2019-08-18T18:37:58Z by 3M8N_gregg_tuben
3M8N_gregg_tuben
3M8N_gregg_tuben
5 Posts

Pinned topic shared ports and HA on single system

‏2019-08-16T16:05:10Z |

Hi,

I followed the instructions to create and HA environment using

I can't get second server to open shared port. i must have a configuration problem but i am at a loss to guess what is missing. 

 

i have two servers mjezconn and mjezconn2 (server.xml below)

the second server always gets this error:

[ERROR   ] CWWKO0221E: TCP Channel defaultHttpEndpoint initialization did not succeed.  The socket bind did not succeed for host * and port 8380.  The port  might already be in use.  Exception Message: EDC8115I Address already in use.     

[ERROR   ] CWWKO0221E: TCP Channel defaultHttpEndpoint-ssl initialization did not succeed.  The socket bind did not succeed for host * and port 8381.  The port might already be in use.  Exception Message: EDC8115I Address already in use.     

 

i have the following shared ports defined for my default stack and am running zos connect with stack affinity. 

8380  TCP  MJE*     DASW    
8381  TCP  MJE*     DAS     
8386  TCP  MJEZ*    DASW    
8386  TCP  MJE*     DASW    

i am using 

Launching mjezconn (WAS FOR Z/OS 19.0.0.3, z/OS Connect open beta/wlp-1.0.26.cl190320190321-1636) on IBM J9 VM, version 8.0.5.36

BAQR0000I: z/OS Connect Enterprise Edition open beta (20190701-1005)     
BAQR9999I: Open beta version will expire at Tue Oct 29 00:00:00 GMT 2019 

 

i used the following http definitions in

1) mjezconn/server.xml 

                         
 <?xml version="1.0" encoding="UTF-8"?>                                                  
 <server description="z/OS Connect EE HA server1">                                       
    <httpEndpoint id="operationsHttpEndpoint" host="*" httpPort="-1" httpsPort="8386" /> 
    <include location="${shared.config.dir}/haserver.xml"/>                              
 </server>              

2)    mjezconn2/server.xml 

<?xml version="1.0" encoding="UTF-8"?>                                                    
<server description="z/OS Connect EE HA server2">                                         
   <httpEndpoint id="operationsHttpEndpoint" host="*" httpPort="-1" httpsPort="8385" />   
   <include location="${shared.config.dir}/haserver.xml"/>                                
</server>                    

3)             <httpEndpoint id="defaultHttpEndpoint"                                
                    host="*"                                              
                    httpsPort="8381"                                      
                    httpPort="8380">                                      
      <tcpOptions acceptThread="true" soReuseAddr="true" />               
    </httpEndpoint>                      

 

i added tcpoptions trying to get a good result .

I can access either server using 8385 and 8386 and which ever comes up first using 8381                                                                              

                                                                

Thanks for any ideas,

gregg

 

 

 

Updated on 2019-08-16T16:07:21Z at 2019-08-16T16:07:21Z by 3M8N_gregg_tuben
  • 3M8N_gregg_tuben
    3M8N_gregg_tuben
    5 Posts
    ACCEPTED ANSWER

    Re: shared ports and HA on single system

    ‏2019-08-18T18:37:58Z  

    I had stack affinity to a non-existant stack on this system

  • edwardz10
    edwardz10
    14 Posts

    Re: shared ports and HA on single system

    ‏2019-08-17T23:43:45Z  

    Have you defined the port in TCPIP as being a sharedport ?

     

    See

     

    https://www.ibm.com/support/knowledgecenter/en/SS4SVW_3.0.0/highavailability/port_sharing.html

     

    Shared ports are defined by the PORT statement in the TCP/IP profile. A shared port definition reserves a specific port number to be shared by specific z/OS address space job names. Two options of the PORT statement control port sharing:

     

    Example:

     

    8381 TCP MJE* SHAREPORT  

     

     

    SHAREPORT
    Requests are distributed by a weighted round-robin distribution method based on the Servers' accept Efficiency Fractions (SEFs) of the listeners that share the port.

     

  • 3M8N_gregg_tuben
    3M8N_gregg_tuben
    5 Posts

    Re: shared ports and HA on single system

    ‏2019-08-18T18:09:03Z  
    • edwardz10
    • ‏2019-08-17T23:43:45Z

    Have you defined the port in TCPIP as being a sharedport ?

     

    See

     

    https://www.ibm.com/support/knowledgecenter/en/SS4SVW_3.0.0/highavailability/port_sharing.html

     

    Shared ports are defined by the PORT statement in the TCP/IP profile. A shared port definition reserves a specific port number to be shared by specific z/OS address space job names. Two options of the PORT statement control port sharing:

     

    Example:

     

    8381 TCP MJE* SHAREPORT  

     

     

    SHAREPORT
    Requests are distributed by a weighted round-robin distribution method based on the Servers' accept Efficiency Fractions (SEFs) of the listeners that share the port.

     

    I believe it did!

    the output from netstat portl that I listed indicates that port 8381 is shared and 8380 is shared & WLM controlled and 8381 I shared. 

    8380  TCP  MJE*     DASW    
    8381  TCP  MJE*     DAS     
    8386  TCP  MJEZ*    DASW    
    8386  TCP  MJE*     DASW    

    I added theTCP definitions below with an OBEYFILE

    PORT 8386 TCP MJE* SHAREPORTWLM

    PORT 8380 TCP MJE* SHAREPORTWLM

    PORT 8381 TCP MJE* SHAREPORT

    Updated on 2019-08-18T18:10:39Z at 2019-08-18T18:10:39Z by 3M8N_gregg_tuben
  • 3M8N_gregg_tuben
    3M8N_gregg_tuben
    5 Posts

    Re: shared ports and HA on single system

    ‏2019-08-18T18:37:58Z  

    I had stack affinity to a non-existant stack on this system