In this article, we provide essential “how to” technical information for deploying SAS Institute's SAS Viya platform, on Red Hat OpenShift Service on AWS (ROSA) as well as provide a reference architecture. For some general security, machine management and storage considerations when deploying SAS Viya on Red Hat OpenShift please take a look at our previous two part series (part 1, part 2).
Based on the collaboration between Red Hat and SAS, we have adopted a holistic approach to SAS Viya on OpenShift. SAS Viya can now be deployed and supported on most x86_64 platforms where OpenShift can be used. This includes both managed and self-managed OpenShift with on-premise and public cloud platforms, including bare metal, Red Hat OpenShift Virtualization, VMware vSphere, Azure, AWS and ROSA.
For more information please check the SAS blog, and for the latest system requirements please check the official SAS Viya documentation found in the SAS Operations Guide.
Make sure to check the SAS Operations Guide and the ROSA life cycle dates to determine which versions of OpenShift that are supported. At the time this article was written, SAS Viya 2024.03 and ROSA both support OpenShift versions 4.13 - 4.15. SAS works to align their SAS Viya Kubernetes support levels with OpenShift and typically adds support for the latest OpenShift version updates within 1-2 months of a given OpenShift version release.
What is ROSA?
ROSA is a fully managed turnkey application platform that helps organizations to increase operational efficiency, refocus on innovation and quickly build, deploy and scale applications in a native AWS environment. Utilizing SAS Viya on ROSA not only allows you to take advantage of running in the public cloud, it also allows you to take advantage of a fully managed application platform that is jointly supported and operated by Red Hat and AWS.
OpenShift provides an optimal foundation for the SAS software stack. It also offers both a hardened Kubernetes with many highly valued enterprise features as an execution platform, and an extensive partner ecosystem with a particular focus on supporting DevSecOps capabilities.
ROSA is a first-party service that’s available to order directly from the AWS management console using your AWS account. It provides pay-as-you-go flexible pricing and an on-demand hourly or annual billing model. There is no upfront commitment, but, you can take advantage of pricing discounts with 1 or 3 year reserved-instance pricing. Refer to the Red Hat OpenShift Service on AWS pricing page for more information.
ROSA is available in two deployment models—ROSA with hosted control planes (ROSA with HCP), and ROSA classic. ROSA with HCP offers a more efficient control plane architecture that allows for faster cluster creation times and reduces the AWS infrastructure costs for ROSA. This is made possible by hosting a highly available control plane within a Red Hat-owned AWS account instead of the customer’s AWS account. For more information about ROSA with HCP, please refer to the blog Red Hat OpenShift Service on AWS with hosted control planes now available.
If you would like to learn more about ROSA, you can start a free 8-hour hands-on experience with a ROSA cluster and browse the ROSA learning hub for more resources.
What is SAS Viya?
SAS Viya is a cloud-native, AI, analytic and data management platform that covers the entire AI and analytics lifecycle. It is not just a single application, but a suite of integrated applications. It’s fully containerized, runs on Kubernetes, and is supported by continuous integration and continuous delivery (CI/CD). SAS Viya makes it possible for users of all skills and at every level of the organization—from data scientists, to business analysts, to executives—to collaborate and scale while operationalizing discovery and decision-making.
From a technical point of view, SAS Viya is deployed in a single Kubernetes namespace, either on dedicated cluster infrastructure or on infrastructure shared with other workloads. SAS Viya on OpenShift can be deployed in different ways, ranging from a manual approach (which we used for our validation deployment) or fully automated using a deployment operator provided by SAS.
SAS Viya on ROSA reference architecture
SAS takes advantage of the scalability provided by ROSA by breaking Viya down into different workload types and recommends assigning each workload to a class of nodes, i.e., to machine pools. This makes sure that the proper resources are available to specific workloads. Figure 1 shows the optimal separation of workloads to such pools.
Figure 1. SAS Viya on ROSA reference architecture
Applying a workload placement strategy by using node/machine pools as shown above provides a number of benefits, and is considered a best practice. The placement of SAS workload classes can be enabled by applying predefined Kubernetes node labels and node taints.
The following node/machine pools are created along with their corresponding SAS workload classes. Please refer to part 1 from our previous two part series, for an explanation of the workload classes mentioned in this diagram:
- SAS Cloud Analytic Services (CAS) (CAS MACHINE POOL)
- SAS Compute Services (COMPUTE MACHINE POOL)
- SAS Microservices and Web Applications (STATELESS MACHINE POOL)
- Infrastructure Services (STATEFUL MACHINE POOL)
- DEFAULT MACHINE POOL
A Git repository is provided with machine pool definitions for the recommended SAS workload classes that take advantage of the machine management and automation capabilities within ROSA. The machine pool definitions include the necessary node labels and node taints for proper workload placement.
The ROSA with HCP deployment type was used for this environment. The control plane runs within the ROSA service account, while the worker/compute nodes and other infrastructure and services run within the customer AWS account. Please note, however, that the information provided in this article is not specific to ROSA in HCP mode.
Amazon Relational Database Service (RDS) for PostgreSQL was configured to make use of the native AWS managed service for use with SAS Viya. SAS requires a PostgreSQL database for storing the environment’s metadata. Using the RDS service is a preferred option for running SAS Viya on AWS—being a managed service, RDS can take care of most typical requirements like scalability, high availability, backup and restore, etc.
More details on the system requirements can be found in the External PostgreSQL section of the SAS documentation.
Amazon Elastic Container Registry (ECR) access was also configured for staging the SAS Viya container images prior to the deployment. While not mandatory, most SAS customers choose to use a “local” mirror registry instead of pulling the SAS images directly from the SAS container registry. Consider using a mirror registry if:
- You have to follow existing security policies which require vulnerability scanning on container images before pulling them to the cluster
- You are concerned about the image pull latency
- You need to “pinpoint” the deployed software stack, especially when managing multiple environments (e.g. dev/test/prod tiers)
SAS provides a command-line utility, SAS Mirror Manager, for working with mirror registries. Please refer to the section Using a Mirror Registry in the SAS documentation for more information.
For persistent storage within ROSA, the AWS EBS and EFS services were configured to provide the RWO and RWX types of storage required by SAS Viya. We also tested more advanced configuration options for providing fast storage for the SASWORK and the CAS disk cache volumes. Please see the transformer patches in the Git repository which accompanies this article.
Deployment process
The details for the ROSA and SAS Viya deployment are available from the following Git repository: https://github.com/redhat-gpst/sas-viya-rosa.
Figure 2. Deployment process
Here are the steps that will be used to deploy ROSA and SAS Viya, at a high level.
ROSA
ROSA prerequisites:
- Associate AWS account with a Red Hat account (if you plan to use the web interface to create a ROSA cluster)
- Enable ROSA from the AWS console
- You have installed and configured the AWS CLI version 2
- You have installed and configured the latest ROSA CLI (
rosa
) - You have logged in to your Red Hat account by using the ROSA CLI
- Create a virtual private cloud (VPC). A single AZ was used, but a multi AZ method could also be used.
- Create Account-wide roles
- Create an OIDC configuration
- Create Operator roles
ROSA deployment using either the ROSA CLI or the web UI on the Hybrid Cloud Console. The deployment type used is ROSA with HCP.
ROSA post-install configuration:
- Create additional machine pools
- Enable the AWS EFS CSI Driver Operator
- Configure AWS RDS service
- Configure ROSA to pull images from AWS ECR
- Install cert-utils-operator
- Apply SCCs (Security Context Constraints) required by SAS Viya. Review the section Preparing for OpenShift in the SAS Viya Operations Guide to understand which ones you need to apply.
SAS Viya (manual deployment)
After purchasing a SAS Viya license, customers receive a set of deployment templates (known as the deployment assets tarball) in YAML format which they need to modify to create the final deployment manifest (usually called site.yaml
). SAS uses the kustomize
tool for modifying the templates. Common customizations include the definition of a mirror repository, configuring TLS, high-availability, storage and other site-specific settings. The final deployment manifest can then be submitted to Kubernetes using multiple kubectl
commands.
NOTE: This section assumes that you have cluster-admin privileges on the ROSA cluster to manage the deployment of SAS Viya.
- Use SAS Mirror Manager to pull the Viya container images and push them to your own container registry, e.g. to AWS ECR (this is an optional step).
- Download the SAS Viya deployment templates (a.k.a. the “deployment assets tarball”) from the SAS web site using the entitlements contained in your license.
- Prepare your build environment. This could be a small Linux machine on AWS EC2 or your Windows laptop. Make sure your build environment can connect to the ROSA cluster. Our Git repository has a section describing the tools you should install.
- Create a new OpenShift project, e.g.
oc new-project viya4
- Untar the deployment assets and prepare a basic directory structure for the site-specific contents (usually a folder called
site-config
). - You need to create site-specific content describing your infrastructure and merge it with the deployment assets downloaded previously. We use the
kustomize
utility for this. See our Git repository for example patches. - At a minimum, you need to prepare transformer patches for:
- Certificate handling (TLS) - you can have SAS Viya generate a self-signed certificate or provide your own TLS web server certificate.
- Local storage and shared storage (RWO and RWX). For deployments on AWS, EBS and EFS can be used, but there are other options as well. Make sure that the storage classes are in place (for EFS see above: ROSA post-install configuration).
- Configuring an internal or external PostgreSQL database. We recommend configuring an external PostgreSQL database to store the metadata generated by the SAS Viya platform. On AWS, the Amazon RDS for PostgreSQL service can be used.
- Configuring an authentication and identity provider. There are many options, but the simplest case would be to deploy a local LDAP server based on OpenLDAP on ROSA.
- Make sure your
fsGroup
setting matches the project’s setting.
- Create a
kustomization.yaml
file and usekustomize
to merge your patches with the deployment templates. - Submit the resulting manifest (“
site.yaml
”) to the ROSA cluster. - Get a cup of coffee while you wait for the deployment to finish. 🙂
Conclusion
With that we’re done! We hope this has given you the basic know-how you’ll need to support your project team in deploying SAS Viya on ROSA.
For some general security, machine management and storage considerations when deploying SAS Viya on OpenShift please take a look at our previous two part series (part 1, part 2).
저자 소개
Patrick is an Associate Principal Ecosystem Solutions Architect with the Global Solution Architecture team at Red Hat. He joined Red Hat in 2019 and currently works with our OEM and ISV partner ecosystem. Patrick is passionate about creating AI/ML, infrastructure and platform solutions with OpenShift.
Hans has been supporting SAS customers in Germany, Austria and Switzerland as a Presales Consultant and Solutions Architect since he joined SAS in 2002. Currently he is working in an international team of architects and DevOps engineers which takes care of the EMEA region. His work is focused on Enterprise Architecture, Kubernetes and cloud technologies.
Abhilash joined SAS in 2022 and part of the Global Technology Practice team supporting various customers in India, Singapore, Japan, ASEAN. He is experienced in Architecture, Cloud (Azure, AWS, GCP) and various Kubernetes flavors.
채널별 검색
오토메이션
기술, 팀, 인프라를 위한 IT 자동화 최신 동향
인공지능
고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트
오픈 하이브리드 클라우드
하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요
보안
환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보
엣지 컴퓨팅
엣지에서의 운영을 단순화하는 플랫폼 업데이트
인프라
세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보
애플리케이션
복잡한 애플리케이션에 대한 솔루션 더 보기
오리지널 쇼
엔터프라이즈 기술 분야의 제작자와 리더가 전하는 흥미로운 스토리
제품
- Red Hat Enterprise Linux
- Red Hat OpenShift Enterprise
- Red Hat Ansible Automation Platform
- 클라우드 서비스
- 모든 제품 보기
툴
체험, 구매 & 영업
커뮤니케이션
Red Hat 소개
Red Hat은 Linux, 클라우드, 컨테이너, 쿠버네티스 등을 포함한 글로벌 엔터프라이즈 오픈소스 솔루션 공급업체입니다. Red Hat은 코어 데이터센터에서 네트워크 엣지에 이르기까지 다양한 플랫폼과 환경에서 기업의 업무 편의성을 높여 주는 강화된 기능의 솔루션을 제공합니다.