Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look into NFS alternative to speed up Drupal with many files #34

Open
klaasvw opened this issue Jun 3, 2015 · 1 comment
Open

Look into NFS alternative to speed up Drupal with many files #34

klaasvw opened this issue Jun 3, 2015 · 1 comment
Assignees
Milestone

Comments

@klaasvw
Copy link
Member

klaasvw commented Jun 3, 2015

Example (tested via xhprof):

Cache clear on Drupal site with 110 modules; gems and npm modules in theme dir.

  • NFS: 200 - 300s, is_dir and opendir PHP function combine 80% of load time.
  • rsync: 5 - 10s

Already tested:

  • vagrant-unison: plugin has bugs but even with fixed bugs ssh2 can't handle large amount of files
  • rsync: only allows sync from host to box. All changes on box are overridden automatically, preventing running grunt or drush on the box and not allowing drupal to generate files (e.g. file fields, image styles, etc.)
  • rsync without --delete option: box becomes stale, changing branches results in error because old files persist

Possible solutions:

  • vhost on box is served from filesystem
  • separate NFS mount for editing files on the host
  • internal sync on box between NFS mount and vhost. Note that lsyncd or inosync is a possible here but we might run into similar issues because it doesn't support bidirectional sync.
@klaasvw klaasvw added this to the v1.0.1 milestone Jun 3, 2015
@klaasvw
Copy link
Member Author

klaasvw commented Jun 26, 2015

Other possibility is the remote development functionality of Nuclide:

http://nuclide.io/docs/remote/

@klaasvw klaasvw modified the milestones: v1.0.1, v1.1.0 Jun 26, 2015
@c31ck c31ck modified the milestones: v1.2.0, v1.1.0 Oct 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants