Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 328 for topology (0.14 sec)

  1. pkg/test/framework/components/cluster/topology.go

    }
    
    func (c Topology) IsPrimary() bool {
    	return c.Primary().Name() == c.Name()
    }
    
    func (c Topology) IsConfig() bool {
    	return c.Config().Name() == c.Name()
    }
    
    func (c Topology) IsRemote() bool {
    	return !c.IsPrimary()
    }
    
    func (c Topology) IsExternalControlPlane() bool {
    	return c.IsPrimary() && !c.IsConfig()
    }
    
    func (c Topology) Primary() Cluster {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. pkg/proxy/topology.go

    }
    
    // canUseTopology returns true if topology aware routing is enabled and properly
    // configured in this cluster. That is, it checks that:
    //   - The TopologyAwareHints or ServiceTrafficDistribution feature is enabled.
    //   - If ServiceTrafficDistribution feature gate is not enabled, then the
    //     hintsAnnotation should represent an enabled value.
    //   - The node's labels include "topology.kubernetes.io/zone".
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 06:46:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/topology/topology.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package topology
    
    import (
    	"fmt"
    
    	cadvisorapi "github.com/google/cadvisor/info/v1"
    	"k8s.io/klog/v2"
    	"k8s.io/utils/cpuset"
    )
    
    // NUMANodeInfo is a map from NUMANode ID to a list of CPU IDs associated with
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tpu_cluster_formation.mlir

      "tf.TPUReplicateMetadata"() {_xla_compile_device_type = "TPU", _replication_info = "b", num_replicas = 2, topology = "topology"} : () -> ()
      "tf.TPUReplicateMetadata"() {_xla_compile_device_type = "TPU", _replication_info = "c", num_replicas = 2, topology = "topology"} : () -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  5. pkg/test/framework/components/environment/kube/flags.go

    		return nil, nil
    	}
    	return topology, nil
    }
    
    func parseClusterTopology(topology string) (clusterTopology, error) {
    	if topology == "" {
    		return nil, nil
    	}
    	out := make(clusterTopology)
    
    	values := strings.Split(topology, ",")
    	for _, v := range values {
    		parts := strings.Split(v, ":")
    		if len(parts) != 2 {
    			return nil, fmt.Errorf("failed parsing topology mapping entry %s", v)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/topologymanager/numa_info_test.go

    				t.Errorf("Unexpected error message. Have: %s wants %s", err.Error(), tcase.expectedErr.Error())
    			}
    		}
    
    		if !reflect.DeepEqual(topology, tcase.expectedNUMAInfo) {
    			t.Fatalf("Expected topology to equal %v, not %v", tcase.expectedNUMAInfo, topology)
    		}
    
    	}
    }
    
    func TestCalculateAvgDistanceFor(t *testing.T) {
    	tcases := []struct {
    		name        string
    		bm          []int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 16:52:14 UTC 2022
    - 11.6K bytes
    - Viewed (0)
  7. pkg/apis/discovery/v1beta1/conversion_test.go

    			external: v1beta1.Endpoint{
    				Topology: map[string]string{
    					corev1.LabelTopologyZone: "zone1",
    				},
    			},
    			internal: discovery.Endpoint{
    				Zone: utilpointer.String("zone1"),
    			},
    		},
    		{
    			desc: "nodeName and topology[hostname] are populated with different values",
    			external: v1beta1.Endpoint{
    				NodeName: utilpointer.String("node-1"),
    				Topology: map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 05 10:48:05 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tpu_validate_inputs.mlir

      %0:2 = tf_executor.graph {
        %control = tf_executor.island() wraps "tf.TPUReplicateMetadata"() {_tpu_replicate = "cluster", device = "/device:TPU:0", num_replicas = 2, topology = "topology"} : () -> ()
        %ri, %c0 = tf_executor.island wraps "tf.TPUReplicatedInput"(%arg0, %arg1) {index = 1 : i64, is_mirrored_variable = false, is_packed = false} : (tensor<i32>, tensor<i32>) -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 06:51:01 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/loadbalancer/loadbalancer_test.go

    			expected         []*endpoint.LocalityLbEndpoints
    		}{
    			{
    				name:             "match none label",
    				failoverPriority: []string{"topology.istio.io/network", "topology.istio.io/cluster"},
    				proxyLabels: map[string]string{
    					"topology.istio.io/network": "test",
    					"topology.istio.io/cluster": "test",
    				},
    				expected: []*endpoint.LocalityLbEndpoints{
    					{
    						Locality: &core.Locality{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    			}
    			activePods = append(activePods, &pod)
    		}
    
    		m := manager{
    			policy: &staticPolicy{
    				topology: topology,
    			},
    			state: &mockState{
    				assignments:   tc.assignments,
    				defaultCPUSet: tc.defaultCPUSet,
    			},
    			topology:          topology,
    			activePods:        func() []*v1.Pod { return activePods },
    			podStatusProvider: mockPodStatusProvider{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top