oracle java cloud service jcs (and weblogic 12c) - what you should know

51
Java Cloud Service & WLS 12c What You Should Know OTN LatAm Tour 2017 Dr. Frank Munz munz & more

Upload: frank-munz

Post on 24-Jan-2018

708 views

Category:

Internet


3 download

TRANSCRIPT

Java Cloud Service & WLS 12c What You Should Know

OTN LatAm Tour 2017 Dr. Frank Munz

munz & more

2

Frank Munz

•Founded munz & more in 2007

•17 years Oracle Middleware,Cloud, and Distributed Computing

•Consulting and High-End Training

•Wrote two Oracle WLS andone Cloud book

#0

WebLogic 12c

New in WebLogic 12.2.1

1. JDK 8

2. Java EE 7

3. IDE

4. Console

5. Deployment

6. JMS

7. Cluster

8. WLST

9. WLDF

10. REST

11. Docker

12. Multi Tenancy

13. ZDT

14. Java CloudService

munz & more #4

A Whirlwind Tour…

More details in this WebLogic 12c presentation

munz & more #5

https://www.slideshare.net/FrankMunz1/12-things-you-should-know-about-weblogic-server-1221-oow2015

WebLogic Multi Tenancy: Isolation

Tenants within a domain are isolated:

• Runtime: JDK: heap, CPU• Security: realm, user• Admin: life cycle, roles• Data / traffic: JNDI, JDBC,Coherence,

requests

munz & more / globalcollect 2016

NO Vendor Lock-In with Docker

Supported by every major cloud provider:

munz & more #7

On premise -> all clouds

DockerRegistry

DockerContainerService

EC2ContainerService

GoogleContainerEngine

AzureContainerService

Bluemix Containers

RESTful Admin: Read

Get server name and state of managed server with name surf1 via admin server

GET (e.g. via web browser)

http://localhost:7001/management/weblogic/latest/domainRuntime/serverLifeCycleRuntimes/surf1?links=none&fields=name,state

Response:{ "name": "surf1", "state": "RUNNING" }

munz & more #8

Elastic Cluster

WebLogic 12.1.2: Dynamic Cluster configWebLogic 12.2.1: Elastic Cluster runtime

+ pre / post scalingcallout to scripts

munz & more #9

How to scale?• Console• WLST• REST• Policy/Action• Calendar based

ZDT: Rollout Oracle Home

https://community.oracle.com/docs/DOC-996731

#1

Oracle PaaS

Know The Essential Cloud Services

ACCS JCS OCCSDeployJava,Python,Rubycode+JSONfile:startcommand

DeployJavaEEmodule,JMS,JDBC,XA.

Deploy(stackof)Dockercontainers

Languagecontainerasservice

WebLogicasService

DockercontainerasService

#2

Developer CS

Developer CS

Cloud native SDLC• Connects to github• Includes

– maven– Hudson– Wiki pages– Jira like ticket system

• Ready for testing• Deploys to JCS, ACCS, Mobile CS

munz & more #14

Free development tooling in cloud

Developer CS

munz & more #15

#3

Prerequisites

for JCS

Prerequisites

JCS will never work, unless you …

1. set replication policy for storage

2. Create DB as a service for JCS

3. Create JCS

-> Write down all the passwords (which have different requirements), ID domain, and storage container name

#4

(1) ReplicationPolicy

Go to Storage & Set Policy

munz & more #19

You will only see this screen only once!

Not setting the policy causes all kind of weird issues

Prereq: Set Replication Policy

Details:https://docs.oracle.com/en/cloud/iaas/storage-cloud/cssto/selecting-replication-policy-your-service-instance.html

#5

(2) DB

Prereq: Create DB as Service

A DB is mandatory for JCS

munz & more #22

DefineDB pwd Specify

Cloud log-in creadential

CreateStorageContainer

Storage Container

Correct syntax / name of storage container:

Storage-IDENDITYDOMAIN/yourContainerName

munz & more #23

You create it once (with the DB).

Later specify it at JCS configuration

Identity Domain

Tip: Always save your Cloud Welcome Email

munz & more #24

ABCDomain

In the Same Email: Data Center

Most OPC links DC agnostic, but storage is not:

munz & more #25

Resend Welcome Email

munz & more #26

Wait Until DB is Created

munz & more #27

#6

(3) JCS

munz & more #29

Create JCS

munz & more #30

DefineWLSpwd

SpecifyDB log-in details:‘sys’ +credentialDB create

NOT welcome1 !!

SpecifyStorage &log-in DetailsStorage admin

JCS is Created

munz & more #31

#7

Access Admin Console

When you create a JCS

munz & more #33

… you will likely forget the following:

munz & more #34

(Unfortunate)Default Setting:NO admin console but sample apps

#8

AccessRules

To the Rescue: Access Rules

munz & more #36

Re-enable Admin Console

#9

Deployments

Deployment

Done via WebLogic console.

munz & more #38

#10

Port Mappings

Port Mapping

Why you can access your deployment in most demos ‘without’ specifying the port

WebLogic Admin Console

#11

Elasticity

Elasticity

munz & more #43

Scale Out

44

Auto Scaling

#12

Patching

Patching

#12

Backups

Backups

Key Take Aways

Make sure to understand

• Java CS is WebLogic as a Service

• Dependencies with Storage and DB CS

• Storage Container name

• Little gotchas (admin console disabled)

• Port mappings

• ACCS for polyglot, lightweight, non Java EE

munz & more #50

www.linkedin.com/in/frankmunz/ www.munzandmore.com/blog

facebook.com/cloudcomputingbookfacebook.com/weblogicbook

@frankmunz

youtube.com/weblogicbook

-> more than 50 web casts

Don’t be

shy J