You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/02/25 07:56:17 UTC

[GitHub] [shardingsphere-elasticjob] furaul opened a new issue #1839: Could I choose the instance to run my job?

furaul opened a new issue #1839:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1839


   ## Feature Request
   
   **For English only**, other languages will not accept.
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response anymore and we cannot make decision by current information, we will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Is your feature request related to a problem?
   No.
   
   ### Describe the feature you would like.
   Could I choose the instance to run my job?
   I have got a job name MySimpleJob, and there are 3 instances of the job.
   The instances ip are 127.0.0.1, 127.0.0.2, 127.0.0.3.
   The default action is that 127.0.0.1 will be choosed to run the job when MySimpleJob has only one piece.
   Could I choose 127.0.0.2 as the instance to run MySimpleJob?
   The code would be like 
   
   `
   @ElasticJobConf(name="MySimpleJob", instance="127.0.0.2")
   `
   
   Don not mind the code, any other way is ok if it could satisfy my demands.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #1839: Could I choose the instance to run my job?

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #1839:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1839#issuecomment-785707599


   Maybe implements your own `JobShardingStrategy` can solve your problems.
   
   Refer to https://shardingsphere.apache.org/elasticjob/current/en/dev-manual/sharding/


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org