Google and Facebook share proposed new Open Rack Standard with 48-volt power architecture

Posted by Debosmita Das, Technical Program Manager and Mike Lau, Technical Lead Manager

Since joining OCP earlier this year, Google has been actively collaborating with Facebook around the new Open Rack Standard. Together we’ve been working with the Open Compute Project through the OCP Incubation Committee, and today we’re pleased to share our Open Rack v2.0 Standard. The proposed v2.0 standard will specify a 48V power architecture with a modular, shallow-depth form factor that enables high-density deployment of OCP racks into data centers with limited space.

Google developed a 48V ecosystem with payloads utilizing 48V to Point-of-Load technology and has extensively deployed these high-efficiency, high-availability systems since 2010. We have seen significant reduction in losses and increased efficiency compared to 12V solutions. The improved SPUE with 48V has saved Google millions of dollars and kilowatt hours.

Our contributions to the Open Rack Standard are based on our experiences advancing the 48V architecture both with our internal teams as well as industry partners, incorporating the design expertise we’ve gained over the years.

In addition to the mechanical and electrical specifications, the proposed new Open Rack Standard V2.0 builds on the previous 12V design. It takes a holistic approach including details for the design of 48V power shelves, high-efficiency rectifiers, rack management controllers and rack-level battery backup units.

We’ve shared these designs with the OCP community for feedback, and will submit them to the OCP Foundation later this year for review. We’re looking forward to presenting the proposed standard to the OCP Engineering Workshop, August 10 at the University of New Hampshire.

If accepted, these standards will be Google’s first contributions to the OCP community, with the goal of bridging the transition from 12V to 48V architecture with ready-to-use deployment solutions for 48V payloads. We look forward to continued collaboration with adopters and contributors as we continue to develop new technologies and opportunities.
Quelle: Google Cloud Platform

Automate deployments and traffic splitting with the App Engine Admin API

Posted by Karolina Netolicka, Product Manager

Google App Engine provides you with easy ways to manage your application from the Google Cloud Platform Console or the command line. However, there are situations when you need to manage your application programmatically. Perhaps you need to deploy to App Engine from your own custom tool chain, or you want to write your own A/B testing framework.

The App Engine Admin API lets you do all these things and more, so we’re happy to announce that the API is now generally available.

You can use the Admin API not only to deploy new versions and manage traffic for any service, but also to change various configuration settings of your application, such as instance class. You can also stop individual versions in order to scale your App Engine Flexible environment deployments to zero. Finally, the API allows you to deploy several App Engine services in parallel, speeding up your deployments.

You can use the Google APIs explorer to easily test-drive the API and get a feel for what it offers.

Usage example
Let’s return to the earlier scenario: imagine that you’re writing a script to deploy a new version of your application and test it with 50% of production traffic or gradually shift the rest of the traffic to the new version. Let’s walk through the basic steps here; you’ll find the full instructions in our Getting started guide.

To deploy a version, you’ll generally follow these steps:

Stage your application resources to a Google Cloud Storage bucket
Convert your app.yaml file to a JSON manifest
Send an HTTP POST request to the Admin API to create the new version

For this example, we’ll deploy a version for which the source code has already been staged.
First, create a file called “helloworld.json” with the following contents:

{
“deployment”: {
“files”: {
“main.py”: {
“sourceUrl”: “https://storage.googleapis.com/admin-api-public-samples/hello_world/main.py”
},
}
},
“handlers”: [
{
“script”: {
“scriptPath”: “main.app”
},
“urlRegex”: “/.*”
}
],
“runtime”: “python27″,
“threadsafe”: true,
“id”: “appengine-helloworld”,
“inboundServices”: [
“INBOUND_SERVICE_WARMUP”
]
}

Next, send an HTTP POST request to the Admin API to create the new version:

POST

https://appengine.googleapis.com/v1/apps/my-application/services/def

ault/versions helloworld.json

(To actually send this request, you’ll need to set up authentication tokens; the Getting started guide contains the full steps.)

The response will contain the ID of a long-running operation that you can then poll to identify when the deployment has completed.

To split traffic between versions, you need at least one other version. You can create another version by changing the version ID and redeploying the same app. For example, using the same steps, deploy a “appengine-goodbyeworld” version using this JSON manifest:

{
“deployment”: {
“files”: {
“main.py”: {
“sourceUrl”: “https://storage.googleapis.com/admin-api-public-samples/goodbye_world/main.py”
},
}
},
“handlers”: [
{
“script”: {
“scriptPath”: “main.app”
},
“urlRegex”: “/.*”
}
],
“runtime”: “python27″,
“threadsafe”: true,
“id”: “appengine-goodbyeworld”,
“inboundServices”: [
“INBOUND_SERVICE_WARMUP”
]
}

Once the version is successfully deployed, route 50% of traffic to it with the following request:

PATCH

https://appengine.googleapis.com/v1/apps/my-application/services/def

ault/?updateMask=split { “split”: { “shardBy”: “IP”, “allocations {
“appengine-helloworld”: 0.5, “appengine-goodbyeworld”: 0.5 } } }

Now you can visit your application at http://<your-project-id>.appspot.com. As you reload the page, you’ll see the contents change depending on which version your request got routed to.

Another way to move traffic between versions is to use App Engine’s Traffic Migration feature to gradually shift all traffic as quickly as possible while giving the new instances sufficient time to warm up:

PATCH

https://appengine.googleapis.com/v1/apps/my-application/services/def

ault/?updateMask=split&migrateTraffic=true {“split”: { “shardBy”: “IP”, “allocations”: {
<“appengine-goodbyeworld”: 1 } } }

More information
The App Engine Admin API documentation contains full instructions on how to use the API, including how to authenticate to the API, deploy versions and set traffic splits.

We hope the Admin API simplifies your day-to-day workflows by letting you manage your App Engine applications from the tools you already use.

Quelle: Google Cloud Platform