[K8S device-plugin] Use the vgpu project to analyze the relationship between device-plugin, Scheduler Extender Plugin, and KubeSchedulerConfiguration

Project https://github.com/4paradigm/k8s-vgpu-scheduler/ How k8s-vgpu-scheduler implements vgpu resource allocation apiVersion: v1 Kind: Pod metadata: name: gpu-pod spec: containers: – name: ubuntu-container image:ubuntu:18.04 command: [“bash”, “-c”, “sleep 86400”] resources: limits: nvidia.com/gpu: 2 # requesting 2 vGPUs nvidia.com/gpumem: 3000 # Each vGPU contains 3000m device memory (Optional, Integer) nvidia.com/gpucores: 30 # Each vGPU uses 30% of the entire […]

[Relearning Python]: Python extended iterator

Write before Iterator First, let’s look at a way to check whether it is iterable: >>> hasattr(list,’__iter__’) True You can use the above method to check whether other default types of objects that have been learned, such as strings, lists, dictionaries, etc., are iterable. iter() is a special method that is the basis of iteration […]

ArcGIS Engine: Extended functions of the Eagle Eye chart – click and rectangle + coordinate status bar

Table of Contents 01 Preface 02 Control function of Eagle Eye Chart 03 Display the geographical coordinates of the current mouse 01 Foreword It is said to be an expansion, but I have forgotten that there are additional experiments. I will add them here. I won’t go into details in the previous section. Check out […]

[Java] Generics extends wildcard

We have already talked about the generic inheritance relationship before: Pair is not a subclass of Pair. Suppose we define Pair: public class Pair<T> {<!– –> … } Then, we wrote a static method for the Pair type, and the parameter type it receives is Pair: public class PairHelper {<!– –> static int add(Pair<Number> p) […]

[kubernetes] Use virtual-kubelet to extend k8s

1 What is virtual-kubelet? Kubelet is the agent of k8s, responsible for monitoring the scheduling of Pods and running Pods. The virtual-kubelet does not actually run on the host, but is a process that can run anywhere. This process pretends to be a real Node to k8s, but the actual operation can be customized. In […]

Extend the window custom object using jQuery’s extend method

1. Basic knowledge 1.window.jQuery window.jQuery is a global variable used to access jQuery objects in the browser. jQuery is a popular JavaScript library that is widely used to simplify tasks such as HTML document traversal, event handling, animation, and Ajax interaction. You can easily use jQuery in your code by setting window.jQuery to a variable. […]

How to quickly extend a new task plug-in in Apache DolphinScheduler?

Author | Dai Lidong Editor | Debra Chen Apache DolphinScheduler is a modern data workflow orchestration platform with very powerful visualization capabilities. DolphinScheduler is committed to enabling data engineers, analysts, data scientists and other data workers to easily build various data workflows and make the data processing process more efficient. Simple and reliable. DolphinScheduler is […]

Go language load balancing Add load balancing to reverse proxy Extend ReverseProxy

Random load package random import ( “errors” “math/rand” ) type RandomBalance struct {<!– –> //Current index curIndex int //Storage load balancing address rss[]string //Observe the subject //conf LoadBalanceConf } func (r *RandomBalance) Add(params …string) error {<!– –> if len(params) == 0 {<!– –> return errors.New(“param len 1 at least”) } addr := params[0] r.rss = […]