[
https://issues.apache.org/jira/browse/APEXCORE-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15693084#comment-15693084
]
ASF GitHub Bot commented on APEXCORE-575:
-----------------------------------------
GitHub user tushargosavi opened a pull request:
https://github.com/apache/apex-core/pull/422
APEXCORE-575 Improve application restart time.
I have implemented a new storage agent (CascadeStorageAgent) which
maintains two storage agents one for old checkpoint directory and one for new
checkpoint directory, using this storage agent we could direct read on old
directory during initial start, and write to new checkpoint directory. With
this we could avoid copy of checkpoints from old directory to new directory.
with 2 GB state application restart was brought down to few seconds from 2
minutes.
Other changes are
- Add log message to print time taken to copy the initial state.
- Do not copy stats and events directory as they are overwritten anyway in
the new application.
- Use new storage agent to avoid copying checkpoints directory.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tushargosavi/apex-core restart_optimizations
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/apex-core/pull/422.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #422
----
commit edc02612efbb786243e6a0188d40fe1e08ac941b
Author: Tushar R. Gosavi <[email protected]>
Date: 2016-11-18T18:06:15Z
APEXCORE-575 Improve application restart time.
----
> Improve application relaunch time.
> ----------------------------------
>
> Key: APEXCORE-575
> URL: https://issues.apache.org/jira/browse/APEXCORE-575
> Project: Apache Apex Core
> Issue Type: Improvement
> Reporter: Tushar Gosavi
> Assignee: Tushar Gosavi
>
> Improve application relaunch time.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)