You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by tushargosavi <gi...@git.apache.org> on 2016/11/24 11:57:00 UTC

[GitHub] apex-core pull request #422: APEXCORE-575 Improve application restart time.

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 <tu...@apache.org>
Date:   2016-11-18T18:06:15Z

    APEXCORE-575 Improve application restart time.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] apex-core pull request #422: APEXCORE-575 Improve application restart time.

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/apex-core/pull/422


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---