[ 
https://issues.apache.org/jira/browse/FINERACT-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17116027#comment-17116027
 ] 

Avik Ganguly commented on FINERACT-429:
---------------------------------------

[~kumaranath_fernando] : Can you send the PR again with resolved conflicts?

> Node aware Scheduler
> --------------------
>
>                 Key: FINERACT-429
>                 URL: https://issues.apache.org/jira/browse/FINERACT-429
>             Project: Apache Fineract
>          Issue Type: Improvement
>            Reporter: Avik Ganguly
>            Priority: Major
>              Labels: gsoc, p2
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I believe multiple instances of the same job can be created by keeping the 
> same job identifier but having different job keys. Additional parameter 
> nodeId can be saved in the job table defaulting to 1. Default this parameter 
> for a single-instance app-server to 1. 
> If node.id parameter exists in the application yaml while deploying, set that 
> system property to configured node id.  
> Front-end can pass the configured node-id of the job instance as a query 
> parameter.
> This will allow the organization to configure something like let Node 1 do 
> all accruals for North zonal office and Node 2 do all accruals for South 
> Zonal office.
> System admin can setup the corresponding mapping for node to IPs/URL while 
> configuring load balancer. Example :-
> ```
> //Nginx - Default Round Robin Configuration
> http {
>     upstream myapp1 {
>         server srv1.example.com;
>         server srv2.example.com;
>         server srv3.example.com;
>     }
>    map $query_string $srvr {
>       default https://myapp1           // If it doesn't match, send to load 
> balancer
>         node=1  srv1.example.com;
>         node=2  srv2.example.com;
>         node=3  srv3.example.com;
>    }
>     server {
>         listen 80;
>         location / {
>             proxy_pass $srvr;
>         }
>     }
> }
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to