Speeding Up The Sync Process

94 views
Skip to first unread message

Pavel Binar

unread,
Jul 17, 2014, 11:05:52 PM7/17/14
to inbo...@googlegroups.com
Hi,

I am syncing my Google Apps email account with about 15k messages and it seems it takes forever...
  1. What can I do to speed up the sync process?
  2. How can I give Vagrant server more power?
  3. How can I install the Inbox to some VPS like https://www.digitalocean.com / AWS?
Thanks!
Pavel

Michael Mattioli

unread,
Jul 18, 2014, 3:11:05 AM7/18/14
to inbo...@googlegroups.com
You can download Vagrant for Linux from Vagrant's site and then just git clone the repo to your VPS and follow the same instructions.

Pavel Binar

unread,
Jul 18, 2014, 4:14:59 AM7/18/14
to Michael Mattioli, inbo...@googlegroups.com
OK It explain the question #3, Thanks!

But I have still concerns about the performance -> running virtual box on server… Can I just install / setup entire environment in native / host environment?

Any thoughts for Q #1,2?
Sent with Sparrow
--
You received this message because you are subscribed to a topic in the Google Groups "Inbox developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/inbox-dev/lE6sNALfA4Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to inbox-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Mattioli

unread,
Jul 18, 2014, 4:23:03 AM7/18/14
to inbo...@googlegroups.com, mattiol...@gmail.com
Take a peek at the Vagrantfile in the GitHub repo. It details the specs for a VMWare Fusion VM (if you're using Vagrant with VMWare Fusion for Mac), see the lines vmware.vmx["memsize"] = "1024" and vmware.vmx["numvcpus"] = "2"? I would imagine changing those adjusts the power of the VM if it were to be used with VMWare Fusion but for VirtualBox I honestly don't know. The whole purpose of using Vagrant is so everyone is on a standardized development platform. Adjusting the specs of the VM or switching to physical hardware defeats the purpose of using Vagrant to begin with...

Pavel Binar

unread,
Jul 18, 2014, 4:30:30 AM7/18/14
to inbo...@googlegroups.com, mattiol...@gmail.com
Cool, I will try that, Thanks.

The Vagrant is great to get anyone quickly up and running, but it is not suitable for production.
I am probably asking for too early for production solution..

I am trying to build an service on the top of Inbox, that is why I am asking for more power.

Andy Fundinger

unread,
Jul 19, 2014, 9:52:18 AM7/19/14
to inbo...@googlegroups.com, mattiol...@gmail.com
I'm thinking of putting it on a Raspberry Pi so an easy way to avoid Vagrant's overhead would be good for me too.  Will python setup.py install do most of what we need at this point?

Michael Mattioli

unread,
Jul 19, 2014, 2:14:35 PM7/19/14
to inbo...@googlegroups.com, mattiol...@gmail.com
Take a peek at setup.sh as well, it installs most (if not all) of the dependencies required but assumes you're using Ubuntu 12.04 LTS (which is what Vagrant is configured to use). Like I said in an earlier comment, the whole purpose of using Vagrant is so that everyone is on the same development platform so running inbox on anything else kinda defeats the purpose unless you're not too concerned about reproducing any errors or issues you encounter.

Christine Spang

unread,
Jul 19, 2014, 7:21:01 PM7/19/14
to Michael Mattioli, inbo...@googlegroups.com
Yeah, you should definitely use `setup.sh` rather than `python setup.py install` ---- the latter will only install the `inbox` module, and won't even deal with the dependencies in `requirements.txt`.


--
You received this message because you are subscribed to the Google Groups "Inbox developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inbox-dev+...@googlegroups.com.

Pavel Binar

unread,
Jul 24, 2014, 2:17:39 AM7/24/14
to inbo...@googlegroups.com, mattiol...@gmail.com
OK, I tried to edit Vagrant box as well as install to VPS and here are the findings:

Vagrant box: I gave the box 4 cores (of 2.7 HGz intel Core i7) and 2 GB or memory - booth more than enough

Install on Digital Ocean - clone repository and then run setup.sh as sudo => no problem at all, smooth installation all systems running right away, pretty fast account synchronization (about 130 emails per minute)

Good job!
P.
Reply all
Reply to author
Forward
0 new messages