Learn how to avoid certain hosts when using Qsub to throw jobs.

Asked 2 years ago, Updated 2 years ago, 42 views

I think it's a simple thing, but I'm in trouble because I can't do it.
I am writing to ask for your advice.

The problem is finding a way to avoid certain Linux hosts when throwing jobs using Qsub.

For example, suppose you have four nodes: Hostname_A, Hostname_B, Hostname_C, and Hostname_D.
When you throw a job to a specific node,

qsub-lh='Hostname_A'xxx.sh

I think is fine with , but I would like to know the reverse (Hostname_A or Hostname_C).

qsub-lh!='Hostname_A'&'Hostname_C'xxx.sh

I'd like to do something like that.

I was using Qsub to throw jobs, but I found that some hosts do not run with memory limitations.
I know the host name, but I am troubled that I cannot do Qsub except for that.

If anyone knows, please let me know.

linux

2022-09-30 16:20

1 Answers

After reviewing it in detail, I realized my mistake.

I referred to the following page.
Excluding nodes from qsub command under sge-Stack Overflow

As I mentioned in the question,

qsub-lh!=Hostname_A xxx.sh

However, the correct answer is

qsub-lh=!(Hostname_A)xxx.sh

Yes, this command instructs you to throw a job to a host other than Hostname_A.

If you have more than one,

qsub-lh=! (Hostname_A | Hostname_B) xxx.sh

Verified that works with the .


2022-09-30 16:20

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.