Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for allocated_ports (0.13 sec)

  1. pkg/registry/core/service/portallocator/metrics.go

    	nodePortAllocated = metrics.NewGauge(
    		&metrics.GaugeOpts{
    			Namespace:      namespace,
    			Subsystem:      subsystem,
    			Name:           "allocated_ports",
    			Help:           "Gauge measuring the number of allocated NodePorts for Services",
    			StabilityLevel: metrics.ALPHA,
    		},
    	)
    	// nodePortAvailable indicates the amount of ports available by NodePort Service.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 26 06:44:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. pkg/registry/core/service/portallocator/operation.go

    		// If no ports are already being allocated by this operation,
    		// then choose a sensible guess for a dummy port number
    		var lastPort int
    		for _, allocatedPort := range op.allocated {
    			if allocatedPort > lastPort {
    				lastPort = allocatedPort
    			}
    		}
    		if len(op.allocated) == 0 {
    			lastPort = 32768
    		}
    
    		// Try to find the next non allocated port.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  3. pilot/cmd/pilot-agent/status/server.go

    		return
    	}
    	// for testing.
    	if s.statusPort == 0 {
    		_, hostPort, _ := net.SplitHostPort(l.Addr().String())
    		allocatedPort, _ := strconv.Atoi(hostPort)
    		s.mutex.Lock()
    		s.statusPort = uint16(allocatedPort)
    		s.mutex.Unlock()
    	}
    	defer l.Close()
    
    	go func() {
    		if err := http.Serve(l, mux); err != nil {
    			if network.IsUnexpectedListenerError(err) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top