zhang-arvin opened a new pull request, #5478:
URL: https://github.com/apache/linkis/pull/5478

   ## What changes were proposed in this pull request?
   
   When an entrance instance goes offline (via `/markoffline`) or comes back 
online, the cached per-user parallel groups are not refreshed, so jobs keep 
being routed with concurrency recalculated from a stale entrance count.
   
   This PR wires cache refresh into the offline/online transitions:
   
   - `EntranceGroupFactory` now records each cached group's 
`creator/user/engineType` key and exposes `refreshAllGroups()`, which 
re-queries the user configuration and recomputes `maxRunningJobs` with the 
latest `getRunningEntranceNumber()`.
   - `EntranceUserParallelOrchestratorPlugin` exposes `invalidateCache()` to 
drop the 30-minute `configCache` entries.
   - `EntranceLabelRestfulApi` (`/markoffline` and `/backonline`) triggers both 
refreshes after the `RouteLabel` update.
   - `EntranceOrchestrationFactory` gets a 
`invalidateUserParallelPluginCache()` entry point (Scala 2.11-safe companion 
class for Java callers).
   
   Closes #5407


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to