Questions tagged [affinity]

Anything related to processor affinity, also known as CPU pinning. The processor affinity is a propriety of a process or a thread in an OS on multi-processor or multi-core systems that influences the OS' scheduling algorithm, binding the execution of that process (or thread) to a specific processor (or core). DO NOT use this tag as a synonym for [affinetransform] tag.

330 questions
0
votes
1 answer

Ignite : Can I set affinity key after pushing data?

I have already pushed data from source to Ignite but I had not configured affinity key. If I configure affinity key now, will data get re-distributed or should I re-push data in ignite? Thank you.
0
votes
0 answers

Facing issue in deploying pods. its working fine if i only use affinity rule but after involving antiaffinity rules it is throwing error

error validating "helm/confluent-for-kubernetes/confluent-platform-6.1.0/iris-streaming-connect.yaml": error validating data: ValidationError(Connect.spec.podTemplate.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution): …
Enjay
  • 1
  • 1
0
votes
0 answers

WFLYEJB0034: EJB Invocation failed on component

Module 1 Server Side public interface BaseInterface{ Customer createCustomer(Profile profile); } public interface InterfaceA extends BaseInterface{ } public class ServiceProducer { @EJB(lookup = "java:global/path/ClassA") @Produces …
0
votes
0 answers

Find out what core Linux OS is running on?

I have 6 cores on my machine and while running a program, I notice some unexplained behavior (stalling) that might come from the OS background operations. Is there a way to find out - which core the OS is running on? and if there are a few cores on…
Yaniv G
  • 307
  • 4
  • 11
0
votes
1 answer

Notification on process affinity change

Is it possible to be notified immediately when an external party changes your programs process affinity? Without polling GetProcessAffinityMask(). For example if a user decides to change it via the task manager.
iam
  • 1,623
  • 1
  • 14
  • 28
0
votes
1 answer

How can I improve the time complexity of Affinity Propagation problem?

I'm trying to cluster similar patterns in a list using Affinity Propagation clustering method. The self_pat is a list containing 80K patterns that needs to be clustered. I'm using the following code: self_pat = np.asarray(self_pat) #So that indexing…
0
votes
1 answer

Run task at start of disruptor handler thread

I am using the LMAX disruptor and it works really well. I would like to execute some core affinity code (that needs to run ON THE DISRUPTOR HANDLER's THREAD), at the begginning of the disruptor's thread lifecycle. I tried overriding the start method…
0
votes
1 answer

It is possible to pin dockerd and containerd to core 0 using taskset or systemd CPUAffinity=0

I'm trying to see if I can pin dockerd and containerd to core 0 on a Linux server, leaving all the other cores for the containers (using cpuset). So I used this on my systemd unit: [Service] CPUAffinity=0 I noticed than the children processes also…
josegts
  • 107
  • 1
  • 13
0
votes
1 answer

Difference in Event Handling in Silverlight and WPF - Thread Affinity issues

I have been developing a Lync Silverlight application in Silverlight and now I am trying to shift it to WPF. However, I am facing some thread affinity issues. For example I display the Lync client's state on my page in a textblock, and so in my code…
0
votes
2 answers

Set CPU affinity for specific VM on VMware ESXI using govc CLI

I have shell scripts that I use to programmatically configure my virtual machines (VMs) on my VMware ESXi host. I use the "govc" command-line-interface (CLI) which provides a suite of commands to configure my VMs that run on my ESXI (i.e., powering…
ennth
  • 1,698
  • 5
  • 31
  • 63
0
votes
1 answer

dynamically scale pods with new nodes addition in k8s cluster

I am building a application in k8s where I want the replicas of deployments/statefulsets to scale as per the number of nodes added. Initially deployment should come up with 1 replicas when 1st node is created and grow as we add more worker/master…
yog raj
  • 147
  • 2
  • 10
0
votes
1 answer

How to deploy container to subset of worker nodes in a docker swarm using affinity?

I have a docker swarm with 1 master node and 7 worker nodes across 3 machines all running tomcat containers. I wish to deploy all my containers to only strictly 2 worker nodes. How will i setup the affinity rule for such a deployment? Can you…
mohtashim
  • 57
  • 1
  • 8
0
votes
1 answer

Is podAntiAffinity "required" enough to sign a pod shared equally to nodes?

The environment is in production. I have 156 GKE Node worker in a cluster. And I wanna sign 1 (max) nginx pod to 1 node. It means, I must be using PodAntiAffinity. requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: …
Nicky Puff
  • 149
  • 3
  • 14
0
votes
1 answer

Setting CPU Affinity and blocking CPU usage for background task

I am writing one application with openmp on a Arm based system. In which I am having 4 High Performance core (Arm Cortex A57) and 4 Low Performance core (Arm Cortex A53). Environment: Poky (Yocto Project Reference Distro) 2.4.3 #pragma omp parallel…
0
votes
1 answer

Is traffic routed to POD on same NODE if POD affinity is used?

I have two PODS, Server POD, and Client POD. My deployment uses replicas more than one. And using the POD affinity I made to co-locate pair of Client and Server nodes on the same node. My question is whether the traffic from Client is routed to…
Chandu
  • 1,837
  • 7
  • 30
  • 51