How Sainsbury’s is generating new insights into how the world eats

Retail will forever be an industry that must constantly reinvent itself in response to, and anticipation of, ever-changing consumer demands. Digital transformation is fueling these changes and we’ve previously spoken about how businesses including Ulta Beauty and Kohl’s are taking advantage of Google Cloud to put data at the center of what they do and deliver the best possible shopping experience and product offerings for their customers.Sainsbury’s, one of Britain’s best-known supermarkets, is another great example of a business transforming the way it engages with its customers with the cloud. With over 150 years of service, Sainsbury’s vision is to be the most trusted retailer, where people love to work and shop. It makes customers’ lives easier, by offering great quality and service at fair prices. The food industry and the way that customers shop is rapidly changing. From foodie hashtags on Instagram, to the latest cooking fads, customers want to stay connected to the latest trends and Sainsbury’s is empowering them do that. To help Sainsbury’s achieve this goal, its Commercial and Technology teams, in partnership with Accenture, are building cutting-edge machine learning solutions on Google Cloud Platform (GCP) to provide new insights on what customers want and the trends driving their eating habits.Sainsbury’s solution relies on data from multiple structured and unstructured sources. Using Google Cloud’s powerful cloud-based analytics tools to ingest, clean and classify that data, and a custom-built front-end interface for internal users to seamlessly navigate through a variety of filters and categories, Sainsbury’s is able to gain advanced insights in real time. As a result, Sainsbury’s has been able to develop predictive analytics models to spot trends and adjust inventory, providing shoppers with a better experience. Phil Jordan, Group CIO of Sainsbury’s believes this project will have a big impact. “The grocery market continues to change rapidly. We know our customers want high quality at great value and that finding innovative and distinctive products is increasingly important to them. With the help of Google Cloud Platform, we are generating new insights into how the world eats and lives, to help us stay ahead of market trends and provide an even better shopping experience for our customers.” This project is also a great example of the successes our customers have when they work with our partners. “We’re delighted to partner with Google Cloud to help the Sainsbury’s Commercial team apply predictive analytics to the identification of new and emerging trends in grocery,” says Adrian Bertschinger, Managing Director for Retail, Accenture. “The food sector is experiencing significant, rapid disruption, and this new, cloud-based insights platform will help Sainsbury’s identify trends much earlier and adapt their product assortment in a faster, more informed way—all for the benefit of customers.” Whatever the next food or shopping trend may be, Sainsbury’s is looking to the cloud to help them stay a step ahead. Learn more about retail solutions on Google Cloud.
Quelle: Google Cloud Platform

Democratizing Connectivity with a Containerized Network Function Running on a K8s-Based Edge Platform — Q&A

The post Democratizing Connectivity with a Containerized Network Function Running on a K8s-Based Edge Platform — Q&A appeared first on Mirantis | Pure Play Open Cloud.
Last week Mirantis’ Boris Renski joined Meghana Sahasrabudhe, Product Lead at Facebook Connectivity for a webinar about the Magma project, which makes it possible to run Containerized Network Functions in an Edge Cloud environment, thus opening up a whole range of capabilities for providers that may otherwise be limited in what they can provide.  We had so many questions we didn’t get to answer them all, so we’re providing all of the questions and answers here.
You can also view the complete webinar and see the discussion of how Magma works and what it does.
Who is maintaining the Magma code?
The Connectivity team at Facebook is actively working to develop and maintain the code base.
Over time, we hope to engage more developers and partners to contribute to the project and add new features.
Where can I find the Magma code base?
Magma is available on GitHub at https://github.com/facebookincubator/magma.
Have you deployed Magma with other partners?
We’re currently working with multiple operators on this effort. We’re looking forward to expanding our work with more partners over time.
Are you trying to replace incumbent vendors?
No. Our goal with Magma is to expand the range of tools and systems available to new and incumbent mobile operators. With Magma, we are helping to enable operators to bring more people online who may not have access to affordable high-quality connectivity.
Why did you choose to open source the Magma project? Did you consider trying to sell it?
We are not in the business of becoming a hardware or software vendor. By sharing our code, we’re helping move the industry forward while giving other companies and individuals an opportunity to contribute to the project, and thereby ultimately drive greater, industry-wide impact.
How much Docker implementation efficiency is lost when running Virtlet for VM-based VNFs? Wouldn’t it be more efficient to re-write the VNFs natively using containers?
Yes, in a perfect world, all VNFs would use the microservices architecture and run in containers. But in reality most VNFs are still VMs. Sadly, a large portion of VNFs really replicate the software that ran in the proprietary physical appliance. So it’s not easy to containerize all the VNFs and run them in containers.
So at least for the short term, we have to live with VNFs running in VMs and requiring very specific environments. That’s why Virtlet becomes an important part of this overall architecture. Also, it provides a very nice transition path, so customers can use Virtlet in a Kubernetes environment, run VM-based VNFs, and then as more and more VNFs transition to containers, then the overall edge architecture doesn’t have to change.
Would this become an alternative to OpenStack, which manages VMs today? If not, how would OpenStack be used with Edge cloud?
Depending on the use cases, an edge cloud may consist of any of the following:

Pure k8s cluster with Virtlet
Pure OpenStack clusters
A combination of OpenStack and k8s clusters

The overall architecture will depend on the use cases and edge applications to be supported.
What impact will this architecture have for usage with virtlet once we introduce containerd instead of dockerd/docketshim layer?
Virtlet already provides support for containerd, so there will be no impact.
Is Magma evolving to 5G SBA?
Yes, Magma is evolving to support 5G as well. That’s something that we’re evaluating right now; it’s on our roadmap.
Does the Magma solution have a containerized version as well ?
Its partially containerized. Like orc8r is fully containerized, feg/agw are partial containerized.  FeG/AGW run as a VM, but services inside the VM, such as radius, aaa etc are containerized.
If PCRF is not available in the core network, what element can I use to replace it, is it the Access Gateway?
Magma provides a PCRF-like database which implements the PCRF function, with the only caveat that instead of Gx, which is based on Diameter, it supports an optimized interface between the Federation Gateway and this PCRF function. For talking to a PCRF, the Federation Gateway supports the Gx interface.
It’s not clear from the Magma architecture, is the orchestrator solution shown here a centralized deployment for all other edge clouds, or does each edge cloud use 3 servers for the control plane?
Each edge location has a minimum of 3 servers for the control plane. So if you have 10 edge locations, and inside each of those 10 edge locations you have with an instance of Magma running, then you would have 10 edge locations with a minimum of 3 servers running everywhere.
What CNI are we using here for proving SCTP services?
It is the bridge CNI plugin. https://github.com/containernetworking/plugins/tree/master/plugins/main/bridge
What about the resiliency of federation and the orchestrator in case that particular node goes down? How are you handling node label changes for other nodes, and which component handles that?
The orchestrator component of Magma is basically a K8s pod, and the entire orchestrator app is actually a stateless app, so it’s probably the easiest one to manage the resilience for. So as long as your Kubernetes is running, which should be the case, because it’s running HA across three minimum nodes, then the K8s controller will be responsible for scaling and maintaining the resilience for orchestrator component of Magma.
For FeG , Magma currently supports Active-Standby. On failover orc8r will do switchover to standby FeG.
Does the Orchestrator use some sort of ETSI framework for LCM functions of container VNF’s?
I don’t think there is a super established ETSI framework for what a CNF should look like. There is as close to a consensus that is possible that is now emerging around what a CNF friendly NFVi layer should look like, and that’s basically K8s running on bare metal and OpenStack and other stuff running on top of Helm charts. There are a bunch of diagrams that ETSI, CNCF, OPNFV — basically all of these bodies that dictate the telco standards — have. The diagrams look very similar, but when it comes to the actual architecture of the CNF, I don’t think there is a common ETSI standard for what it should look like.
How does the client detect the degradation of service and when it is time to fall back?
There’s two layers of orchestration happening here. There’s orchestration done by the orchestrator component of Magma that monitors the Magma components such as CWAGs or Access Gateways, and some sort of degradation is happening at that layer. The orchestrator is responsible for that. And then there’s infrastructure level degradation. For example, if there is a physical node that died, or some part like the Virtlet service hung up — some things that are invisible to the orchestrator, that is managed by MCP Edge, specifically by the StackLight component.
StackLight deploys monitoring probes for every single service that runs in MCP Edge and continuously reports anything that is wrong. Moreover, there are automatic triggers that are configured for restarts or redeploys that DriveTrain is capable of executing to proactively remediate some of the problems at the infrastructure level.
Have you measured the data plane throughout between SGW – PGNGW and PGW-Internet? If yes, what is it and how do you simulate the traffic?
We have a collapsed S&PGW in Magma with the goal of distributing the entire EPC function vs parts of the EPC function scaling out independently. We have an extensive lab to baseline performance with industry standard tools like TM-500 and IXIA to baseline our performance.
So the Federation Gateway and Access Gateway are VM-based Pods managed by Kubernetes?
Yes, Virtlet is a CRI implementation, so all VMs are defined as Kubernetes Pods.
What is the roadmap for Magma to support NB-IoT?
A number of 5G features are currently on the roadmap for Magma, including Narrow Band Internet of Things.
Magma is described as “5g ready.” What does that mean and, more importantly, what specifically is still missing in Magma to make it possible to deploy with 5G RAN? 
By “5G ready” we mean that Magma is already built with 5G principles of distributed core, control plane/user plane separation, service based architecture, and so on. Magma can today already work in the 5G NSA mode. Once the 5G SA architecture is out at the end of the year, we will look into adding 5GC features to Magma. Those will be on the roadmap in 2020.
The post Democratizing Connectivity with a Containerized Network Function Running on a K8s-Based Edge Platform — Q&A appeared first on Mirantis | Pure Play Open Cloud.
Quelle: Mirantis

Quay V3.1 Release Update with Bill Dettelback and Tom McKay – OpenShift Commons Briefing

 
In this briefing, Bill Dettelback, Red Hat’s Quay Engineering Manager and Tom McKay, Engineer Lead for Quay walk through Quay v3.1’s features, give a short demo of the new features and discuss the road map for future Quay releases, including a progress update on the open sourcing of Quay.
Slides: Quay 3.1 OpenShift Briefing
About Quay
Quay is a container image registry that enables you to build, organize, distribute and deploy containers. Quay gives you security over your repositories with image vulnerability scanning and robust access controls. Fully OCI compliant, Quay provides a scaleable platform to host container images across any size organization.
Quay works out of the box as a standalone container registry, requiring only a database and reliable storage for your container images. With minimal infrastructure requirements, Quay is designed to scale easily as your container image volumes grow and can run on everything from a laptop to enterprise-class servers. If you are looking for enterprise-level support, Red Hat offers Quay.io as a hosted service, or Red Hat Quay for on-premise or private-cloud deployments.
Quay was first released in 2013, as the first enterprise hosted registry. Six years later, we’re celebrating the first major release of the container registry since it joined the Red Hat portfolio of products through the acquisition of CoreOS in 2018 and watch for an announcement soon of the coming Open Source release of Project Quay!
Join the Quay Community
Join the conversation and collaborate with the Quay Open Source community by joining the QUAY Special Interest Group on Google group here: https://groups.google.com/forum/#!forum/quay-sig
This group is for discussion, best practices and help deploying, integrating and implementing quay.
Additional Resources:
Quay documentation
About OpenShift Commons
OpenShift Commons builds connections and collaboration across OpenShift and OKD communities, upstream projects, and stakeholders. In doing so we’ll enable the success of customers, users, partners, and contributors as we deepen our knowledge and experiences together.
Our goals go beyond code contributions. OpenShift Commons is a place for companies using OpenShift to accelerate its success and adoption. To do this, we’ll act as resources for each other, share best practices and provide a forum for peer-to-peer communication.
To stay abreast of all the latest announcements, briefings and events, please join the OpenShift Commons and join our mailing lists & slack channel.
Join OpenShift Commons today!
The post Quay V3.1 Release Update with Bill Dettelback and Tom McKay – OpenShift Commons Briefing appeared first on Red Hat OpenShift Blog.
Quelle: OpenShift

What’s the weather like? Using Colab to get more out of BigQuery

With the interest in data science exploding over the last decade, there’s a similar increase in the number of tools that can be used to perform data science-related tasks, like data wrangling, modeling, and visualization. While we all have our favorites—whether they be Python, R, SQL, spreadsheets, or others—many modern data science workflows and projects will generally involve more than one tool to get the job done. Whether you’re learning new skills or analyzing your company’s data, developing a solid workflow that integrates these tools together can help make you a more productive and versatile data scientist.In this post, we’ll highlight two effective tools for analyzing big data interactively:BigQuery, Google Cloud Platform’s highly scalable enterprise data warehouse (which includes public datasets to explore)Colab, a free, Python-based Jupyter notebook environment that runs entirely in the cloud and combines text, code, and outputs into a single documentAnd, perhaps more importantly, we’ll highlight ways to use BigQuery and Colab together to perform some common data science tasks. BigQuery is useful for storing and querying (using SQL) extremely large datasets. Python works well with BigQuery, with functionality to parametrize and write queries in different ways, as well as libraries for moving data sets back and forth between pandas data frames and BigQuery tables. And Colab specifically helps enhance BigQuery results with features like interactive forms, tables, and visualizations.To reduce the need for subject matter knowledge in our example here, we’ll use data from a familiar field: weather! Specifically, we’ll be using daily temperature readings from around the planet, found in the BigQuery public dataset “noaa_gsod,” to try to understand annual temperature movements at thousands of locations around the world.This Colab notebook (click “Open in playground” at top left once it opens) is the accompanying material for this post, containing all of our code and additional explanation. We’ll reference some of the code and outputs throughout this post, and we highly encourage you to run the notebook cell-by-cell while reading to see how it all works in real time.Before you get started, if you don’t already have a GCP project, there are two free options available:For BigQuery specifically, sign up for BigQuery sandbox (1 TB query, 10 GB storage capacity per month).If you want to experiment with multiple GCP products, activate the free trial ($300 credit for up to 12 months).Getting started: using interactivity to pick location and see daily temperatureThe first thing a data scientist often does is get familiar with a new dataset. In our case, let’s look at which locations we can get temperature data from within the stations table.Using the “%%bigquery” magic, we can write our SQL directly in a notebook cell—with SQL syntax highlighting—and have the results returned in a pandas data frame. In the example query below, we call in the stations table into the data frame “weather_stations.” (Much of the other code ensures that results are restricted to stations that have near-complete daily data for 2019 and have several years of history.)To explore the weather stations that were queried, use Colab’s interactive table feature, which is enabled by default with “%load_ext google.colab.data_table” in the setup. This allows sorting and filtering the table right in the notebook itself. For instance, to see how many weather stations there are in the U.S. state of Connecticut……you can see the five results right there. For reasonably sized data frames (up to tens of thousands of rows), interactive tables are a great way to do some on-the-fly data exploration quickly. There’s no need to filter the pandas data frame, write another query, or even export to Sheets—you can just manipulate the table right in front of you.Next, let’s explore the temperature data for a specific location (note that temperatures throughout are in Fahrenheit). Colab provides a convenient way to expose code parameters with forms. In our case, we set up station USAF—the unique identifier of a weather station—as a user-modifiable form defaulting to 745090 (Moffett Federal Airfield, close to Google headquarters in the Bay Area).We can then pass that USAF as a BigQuery parameter in another BigQuery cell (see the additional arguments in the top line of code), querying 2019 temperature data for only the station of interest.Now that there’s daily average, minimum, and maximum temperature data for this single station, let’s visualize it. Plotly is one library you can use to make nice interactive plots and has solid Jupyter notebook integration. Here, we used it to make a time series plot of daily data for our station of interest, using the fixed red-blue (warm-cool) color scale often associated with temperature.In the image, you can see a typical northern hemisphere weather pattern: cooler in the early part of the year, getting warmer from March to June, and then pretty warm to hot through the end of the data in September. In Colab, the plot is interactive, allowing you to select individual series, zoom in to specific ranges, and hover over to see the actual date and temperature values. It’s another example of how the notebook enables exploration right alongside code.Getting more temperature data using Python to write SQLWhile interesting, the 2019 temperature plot doesn’t tell us much about seasonal patterns or other larger trends over longer periods of time. The BigQuery NOAA dataset goes back to 1929, but not in one single table. Rather, each year has its own table named “gsod{year}” in that dataset. To get multiple years together in BigQuery, we can “UNION ALL” a set of similar subqueries, each pointing to the table for a single year, like this:This is repetitive to do by hand and annoying to have to recreate if the data range changes, for example. To avoid that, we’ll use the pattern of the subquery text to loop over our years of interest and create, in Python, the SQL query needed to get the data for multiple years together, like this:Plugging that table reference into the previous query to get daily temperature data gets results, and putting those through the plotting code shows daily temperature for nearly 15 years.For Moffett Airfield and most other locations, you can see that there’s a regular temperature pattern of cycling up and down each year—in other words, seasons! This is a cool plot to generate for various locations around the world, using the interactive form set up earlier in the Colab. For example, try USAF 825910 (Northeast Brazil) and 890090 (the South Pole) to see two really different temperature patterns.Fitting a sinusoidal model for temperature dataAfter seeing this very cyclical pattern, the next step a data scientist might take is creating a model for the temperature patterns at the location. This would give a smoothed estimate of average temperature, an estimate of the annual range in temperature, and more. This is another task where a language like Python with solid optimization/modeling libraries can help supplement what we are doing with BigQuery. An applicable curve to fit here is a sine wave, a mathematical function that describes a smooth periodic oscillation, such as temperature moving in consistent patterns across days over years. We’ll use scipy’s curve fit optimization method to estimate a sinusoidal model for the average daily temperature at a given location, as shown here:Once the model is fit, we can draw a curve of the estimated average temperature on top of our original plot of average temperature, like so for Moffett Airfield:Despite some extreme observations that stick out in early summer and winter, the curve appears to be a pretty good fit for estimating average temperature on a given date of the year.Using the model to see results at multiple locationsAfter running through the curve fits for a couple different stations, it looks like the model generally fits well and that the attributes of the individual curves (mean, amplitude, etc.) provide useful summary information about the longer-term temperature trends at that location. To see which places have similar temperature attributes, or find ones at the most extreme (hottest/coldest, most/least varying over the year), it would make sense to fit the model and store results for multiple weather stations together.That said, pulling in multiple years of daily data for several weather stations would result in tens of millions of rows in Python memory, which is often prohibitive. Instead, we can loop over stations, getting the data from BigQuery, fitting the sinusoidal model, and extracting and storing the summary stats one station at a time. This is another way to use BigQuery and Python together to let each tool do what it is individually good at, then combine the results.In the Colab, we fit curves to a random sample of stations (number specified by the user) and a few others selected specifically (because they are interesting), then print the resulting summary statistics in an interactive table. From there, we can sort by average temperature, highest/lowest range in annual temperature, or mean absolute error of the curve fit, and then pick out some locations to see the corresponding plots for.For example, you see here that USAF 242660, representing Verhojansk, Russia (a town near the Arctic Circle), has an estimated range in average temperature of more than 115 degrees—among the highest in our data set. That generates the corresponding plot:Holy amplitude! The temperature goes from the high 60s in July to nearly -50 in January, and keep in mind that that’s just the average—the min/max values are even more extreme.Contrast that with USAF 974060, representing Galela Gamarmalamu (a place in Indonesia very close to the equator), where the model-estimated temperature range is less than one degree.The average temperature there doesn’t really obey a cyclical pattern—it’s essentially around 80 degrees, no matter what time of the year it is.Writing analysis results back to BigQueryA final step in this Colab/Python and BigQuery journey is to take some of what we’ve created here and put it back into BigQuery. The summary statistics from curve fitting might be useful to have for other analyses, after all. To write out our pandas data frame results, we use the BigQuery client function “load_table_from_dataframe” with appropriate output dataset and table info.After this is done, our weather station temperature summary outputs are back in BigQuery…ready for use in the next data analysis!Weather datasets are a great way to explore and experiment. There are many more intricate models and interesting related outputs you could get from this dataset, let alone other real-world analyses on proprietary data.The combination of BigQuery, Python, and Colab can help you perform various data science tasks—data manipulation, exploration, modeling, prediction, and visualization—in an effective, interactive, and efficient manner.Play around with the accompanying notebookand start doing your own data analysis with BigQuery and Colab today!
Quelle: Google Cloud Platform