Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,371 for Allocate (0.15 sec)

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

    	)
    	// clusterIPAllocationErrors counts the number of error trying to allocate a ClusterIP and allocation mode: static or dynamic.
    	clusterIPAllocationErrors = metrics.NewCounterVec(
    		&metrics.CounterOpts{
    			Namespace:      namespace,
    			Subsystem:      subsystem,
    			Name:           "allocation_errors_total",
    			Help:           "Number of errors trying to allocate Cluster IPs",
    			StabilityLevel: metrics.ALPHA,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 13 13:33:30 UTC 2022
    - 4K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/memorymanager/fake_memory_manager.go

    	klog.InfoS("Start()")
    	return nil
    }
    
    func (m *fakeManager) Policy() Policy {
    	klog.InfoS("Policy()")
    	return NewPolicyNone()
    }
    
    func (m *fakeManager) Allocate(pod *v1.Pod, container *v1.Container) error {
    	klog.InfoS("Allocate", "pod", klog.KObj(pod), "containerName", container.Name)
    	return nil
    }
    
    func (m *fakeManager) AddContainer(pod *v1.Pod, container *v1.Container, containerID string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/policy.go

    	"k8s.io/utils/cpuset"
    )
    
    // Policy implements logic for pod container to CPU assignment.
    type Policy interface {
    	Name() string
    	Start(s state.State) error
    	// Allocate call is idempotent
    	Allocate(s state.State, pod *v1.Pod, container *v1.Container) error
    	// RemoveContainer call is idempotent
    	RemoveContainer(s state.State, podUID string, containerName string) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. pkg/registry/core/service/ipallocator/cidrallocator_test.go

    			return false, nil
    		}
    		allocator.ipAddressSynced = func() bool { return true }
    		return allocator.ready.Load(), nil
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    	// allocate one IP from the new allocator
    	err = r.Allocate(netutils.ParseIPSloppy("10.0.0.11"))
    	if err != nil {
    		t.Fatalf("error allocating IP 10.0.0.11 from new allocator: %v", err)
    	}
    	count++
    	for r.Free() > 0 {
    		ip, err := r.AllocateNext()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  5. src/runtime/textflag.h

    #define WRAPPER 32
    // This function uses its incoming context register.
    #define NEEDCTXT 64
    // Allocate a word of thread local storage and store the offset from the
    // thread local base to the thread local storage in this variable.
    #define TLSBSS	256
    // Do not insert instructions to allocate a stack frame for this function.
    // Only valid on functions that declare a frame size of 0.
    #define NOFRAME 512
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 17:28:41 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. test/fixedbugs/issue13160.go

    package main
    
    import (
    	"fmt"
    	"runtime"
    )
    
    const N = 100000
    
    func main() {
    	// Allocate more Ps than processors.  This raises
    	// the chance that we get interrupted by the OS
    	// in exactly the right (wrong!) place.
    	p := runtime.NumCPU()
    	runtime.GOMAXPROCS(2 * p)
    
    	// Allocate some pointers.
    	ptrs := make([]*int, p)
    	for i := 0; i < p; i++ {
    		ptrs[i] = new(int)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/memorymanager/policy.go

    // Type defines the policy type
    type policyType string
    
    // Policy implements logic for pod container to a memory assignment.
    type Policy interface {
    	Name() string
    	Start(s state.State) error
    	// Allocate call is idempotent
    	Allocate(s state.State, pod *v1.Pod, container *v1.Container) error
    	// RemoveContainer call is idempotent
    	RemoveContainer(s state.State, podUID string, containerName string)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 05 17:52:25 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf_test.go

    			alloc := &testAllocator{}
    			if err := target.EncodeWithAllocator(tc.obj, writer2, alloc); err != nil {
    				t.Fatal(err)
    			}
    			if alloc.allocateCount != 1 {
    				t.Fatalf("expected the Allocate method to be called exactly 1 but it was executed: %v times ", alloc.allocateCount)
    			}
    
    			// to ensure compatibility of the new method with the old one, serialized data must be equal
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 03:17:50 UTC 2022
    - 5K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Buffer.class, ByteBuffer.allocate(0))
              .put(CharBuffer.class, CharBuffer.allocate(0))
              .put(ByteBuffer.class, ByteBuffer.allocate(0))
              .put(ShortBuffer.class, ShortBuffer.allocate(0))
              .put(IntBuffer.class, IntBuffer.allocate(0))
              .put(LongBuffer.class, LongBuffer.allocate(0))
              .put(FloatBuffer.class, FloatBuffer.allocate(0))
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 21K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Buffer.class, ByteBuffer.allocate(0))
              .put(CharBuffer.class, CharBuffer.allocate(0))
              .put(ByteBuffer.class, ByteBuffer.allocate(0))
              .put(ShortBuffer.class, ShortBuffer.allocate(0))
              .put(IntBuffer.class, IntBuffer.allocate(0))
              .put(LongBuffer.class, LongBuffer.allocate(0))
              .put(FloatBuffer.class, FloatBuffer.allocate(0))
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 20.5K bytes
    - Viewed (0)
Back to top