An AppEngine service to efficiently cache large set of large files over the internet with high level of duplication. The cache is content addressed and uses Cloud Storage as its backing store.
Isolate enables sending temporary files around. It is a pure cache, files will be deleted.
Isolate can be used standalone when only files need to be transfered but no task scheduler is needed.
- Visit http://console.cloud.google.com and create a project. Replace
<appid>
below with your project id. - Visit Google Cloud Console
- IAM & Admin, click
Add Member
and add someone else so you can safely be hit by a bus. - IAM & Admin, Service accounts, click
Create service account
:- Name it "server@<appid>.iam.gserviceaccount.com".
- Check
Furnish a new private key
and selectP12
.- TODO(vadimsh): switch to JSON keys.
- Click
Create
.
- Storage, click
Create bucket
, name it with the same . Do not use any pre-created bucket, they won't work.- Click on Browser on the left.
- Click the 3 dots on the right of your new bucket and select
Edit bucket permissions
. - Enter the user
"server@<appid>.iam.gserviceaccount.com"
in the
Add members
field and selectStorage Legacy Bucket Writer
andStorage Legacy Object Reader
from theStorage Legacy
group. - Click
Add
.
- Pub/Sub, click
Enable API
.
- IAM & Admin, click
- Upload the code with:
./tools/gae upl -x -A <appid>
- If you plan to use an auth_service,
- Make sure it is setup already.
- Follow instructions here.
- else
- Visit "https://<appid>.appspot.com/auth/bootstrap" and click Proceed.
- Visit "https://<appid>.appspot.com/auth/groups":
- Create access groups as relevant. Visit the "IP Whitelists" tab and add bot external IP addresses if needed.
- Visit "https://<appid>.appspot.com/restricted/config"
- Set "API access client email address" to "server@<appid>.iam.gserviceaccount.com".
- Follow the on-screen instructions to generate the base64 encoded DER private key.
- Click Submit.
- Tweak settings:
- Visit Google Cloud Console
- App Engine, Memcache, click
Change
:- Chose
Dedicated
. - Set the cache to Dedicated 5Gb.
- Wait a day of steady state usage.
- Set the limit to be lower than the value read at "Total cache size" in "Memcache Viewer".
- Chose
- App Engine, Memcache, click
- App Engine, Settings, click
Edit
:- Set Google login Cookie expiration to: 2 weeks, click Save.
- Visit Google Cloud Console