ctu 2017 - i168 ibm mq in the cloud

51
IBM Cloud Technical University 2016 25 – 28 October 2016|Madrid, Spain I168 IBM MQ in the Cloud Rob Parker, MQ Ecosystem

Upload: robert-parker

Post on 10-Feb-2017

267 views

Category:

Software


0 download

TRANSCRIPT

Page 1: CTU 2017 - I168 IBM MQ in the cloud

IBM Cloud Technical University 201625 – 28 October 2016|Madrid, Spain

I168IBM MQ in the Cloud

Rob Parker, MQ Ecosystem

Page 2: CTU 2017 - I168 IBM MQ in the cloud

2

• IBM’s statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBM’s sole discretion.

• Information regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision.

• The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or functionality. Information about potential future products may not be incorporated into any contract.

• The development, release, and timing of any future features or functionality described for our products remains at our sole discretion.

• Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon many factors, including considerations such as the amount of multiprogramming in the user’s job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve results similar to those stated here.

Please Note:

Page 3: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 3

Agenda• Introduction• Self-Service• Virtual Servers• Containers

Page 4: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 4

Everyone’s moving to the cloud

Page 5: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 5

There is a lot of choice of cloud (and it’s growing!)

Page 6: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 7

IBM MQ on the cloud

•Enterprise applications are expanding beyond the datacentre and asynchronous enterprise messaging is the easiest and most efficient way to bridge between those applications in globally distributed cloud datacentres.

• MQ offerings available on popular public cloud platforms

• E.g. Pure Application on Softlayer, Azure, AWS• Monthly or hourly license options for MQ are available in some

cloud environments• Or bring your own licence

– Or build your own image and deploy to the cloud of your choice

Page 7: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation

Messaging in the cloudDigital IT Enterprise IT

Message Hub(Based on Apache Kafka)

MQ Light API

MQ Light API

Enterprise Messaging & Integration

MQ ExplorerMQ ClientMQ Light API

Kafka API REST API IBM MQ Appliance

Bluemix PublicBluemix DedicatedBluemix Local

IBM MQ

Cloud

On-Prem

IBM MessageConnect

8

Page 8: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 9

Why Messaging in the cloud?• Offloading time consuming processing

– Applications can focus on application logic– They simply create message and send, no thought on routing or

intermediary handling

• Smoothing variations in system load

• Loose coupling– No need to focus on who is putting or consuming messages– Can be one or more publishers & subscribers.

• Resilience – When applications are started or ended messages remain– End of an application does not mean loss of work.

Page 9: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 10

Why IBM MQ?• Message delivery assurance

– persistent (Assured arrival)– Will be processed only once (even if duplicate messages)

• Application simplification– MQ handles all processing and tracking of messages

• Transactions– Co-ordination with Databases– Transactional messaging

• Interoperability with existing infrastructure and products– Can instantly link with existing IBM MQ infrastructure– Works with range of IBM and third party products

Page 10: CTU 2017 - I168 IBM MQ in the cloud

IBM Cloud Technical University 201625 – 28 October 2016|Madrid, Spain

Self Service

Page 11: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 12

Self service• Who is this ‘self’?

– Typically the application owning teams– But could be the administration team

• Scope of self service?– Development environments– Test systems– Production environments

• Extent of what to self serve?– Simple provisioning of queues?– Provisioning of whole queue managers and architectures?

Page 12: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 13

Self service tooling• From one point of view MQ’s “self service portal” is simply its

traditional administrative tooling– I.e. MQ Explorer, runmqsc– This provides remote access to MQ configuration, with per-

user/group authorisation for visibility and modification.

• However…– You can’t expect your users to know all there is to know about

MQ configuration– You probably only want to expose a subset of capabilities– MQ is not the centre of the universe! You’ll need to coordinate

MQ resources with the other components in the solution anyway

Page 13: CTU 2017 - I168 IBM MQ in the cloud

• From that point of view, MQ doesn’t have self service tooling

• And as no off the shelf solution will 100% match your corporation’s requirements you’ll need to build/customise your own– And many have built such tooling over the years

• Instead, MQ provides the interfaces to make using these possible…

Self service tooling

Page 14: CTU 2017 - I168 IBM MQ in the cloud

• UrbanCode orchestrates and automates the deployment of applications and middleware configurations into development, test and production environments.

• Coordinates deployments across multiple machines.

• MQ plugin for UrbanCode provides automations for off the peg or customised deployments of UrbanCode artefacts

• Queue manager creation• Queues, channels, topics, etc.• Custom mqsc scripts• …

See the MQ as-a-service redpaper for details

IBM UrbanCode Deploy

Page 15: CTU 2017 - I168 IBM MQ in the cloud

• Experimental IBM MQ cookbook• Demonstrates idempotent installation on

MQ installation on Linux• Includes queue manager creation and

start

• More to be added• Feedback very welcome

https://github.com/ibm-messaging/mq-chef

IBM MQ Chef Cookbook

Page 16: CTU 2017 - I168 IBM MQ in the cloud

• Limit the MQ options available to users as much as possible

– This will depend on the expected MQ skill level of users

– Minimise MQ resources and attributes exposed to the users

– Ideally abstract the underlying MQ resources from the users

• Use a portal to act as an intermediary

– Do not grant your users MQ administrator rights, the portal is the MQ administrator

• Log all changes– Either using the portal– Or (and) with MQ configuration events

• Integrate resources direct into the monitoring system

– When provisioning systems, enable background monitoring as standard

Self-service portal considerations

Page 17: CTU 2017 - I168 IBM MQ in the cloud

• IBM runs a fully managed messaging service for users in Bluemix

• Providing applications access to asynchronous messaging using theMQ Light API, Kafka API, etc

The Message Hub Service in IBM Bluemix

Page 18: CTU 2017 - I168 IBM MQ in the cloud

Example of Message Hub usage

Application Application

Page 19: CTU 2017 - I168 IBM MQ in the cloud

Example of Message Hub usage

Application ApplicationProduct Topic

Page 20: CTU 2017 - I168 IBM MQ in the cloud

Example of Message Hub usage

Application ApplicationProduct Topic

ApplicationProduct 2 Topic

Page 21: CTU 2017 - I168 IBM MQ in the cloud

Example of Message Hub usage

Application

Application

ApplicationProduct Topic

Product 2 Topic

Page 22: CTU 2017 - I168 IBM MQ in the cloud

IBM Cloud Technical University 201625 – 28 October 2016|Madrid, Spain

Virtual Servers

Page 23: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 24

Virtual Servers

Virtual Servers have different names:

Virtual Servers – Deprecated Nov 2016

EC2 Instance

Server

Watch this space!

Page 24: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 25

Virtual Servers• Virtual Servers are virtual machines in the cloud

• Select OS/Image• Select CPUs• Select Memory• Select Disk Size

• Most Clouds have an API that can be used to automatically provision virtual servers.• This can be interacted manually or via Tool.

Page 25: CTU 2017 - I168 IBM MQ in the cloud
Page 26: CTU 2017 - I168 IBM MQ in the cloud
Page 27: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 28

MQ + Virtual Servers• Does MQ require special settings to work on a

cloud virtual server?• No!• But the underlying OS must meet the minimum

system requirements.

Page 28: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 29

Why MQ + Virtual Servers?• Don’t have to manage Hardware

• Also quick to get new machine

• Easy to create new Virtual Server/Queue Manager• Can use orchestration tools• Auto Scaling groups + Load Balancers

Page 29: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 30

Example of MQ + Virtual Servers

MQ

Load Balancer

40%Auto-Scaling Group Group

Manager

Page 30: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 31

Example of MQ + Virtual Servers

MQ

Load Balancer

90%Auto-Scaling Group

MQ

40%40%Group

Manager

Page 31: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 32

Example of MQ + Virtual Servers

MQ

Load Balancer

90%Auto-Scaling Group

MQ

60%60% 90%

MQ

60%Group

Manager

Page 32: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 33

Example of MQ + Virtual Servers

MQ

Load Balancer

Auto-Scaling Group

MQ

20%

MQ

20%20%30% 30%Group

Manager

Page 33: CTU 2017 - I168 IBM MQ in the cloud

IBM Cloud Technical University 201625 – 28 October 2016|Madrid, Spain

Containers

Page 34: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 35

Containers• Containers provide a similar environment to a VM

but lighter in weight– A virtual machine provides an abstraction of the

physical hardware– A container abstracts the OS level, typically at the

user level

• Linux containers– Containers all share the same OS kernel– Images are constructed from layered filesystems– Containers isolate applications from each other and

the underlying infrastructureOperating system

Hypervisor

Virtual machine

Operating system

Bins / libs

App App

Virtual machines

Virtual machine

Operating system

Bins / libs

App App

Operating system

Container

Bins / libs

App App

Container

App App

Bins / libs

Container

App App

Containers

Container

App App

Page 35: CTU 2017 - I168 IBM MQ in the cloud

36

• Each container/process only sees its own process(es)

• Each container/process only sees its own filesystem

• Fast startup time – just the time to start a process, setup networks, etc

• Better resource utilization – can fit far more containers than VMs into a host

Benefits of Containers

Page 36: CTU 2017 - I168 IBM MQ in the cloud

37

• Tooling to manage containers– Containers are older than Docker– Docker just made them easy to use

• Docker creates and manages the lifecycle of containers– Setup filesystem– Setup networks– Setup volumes– CRUD container

• Create: start new process telling OS to run it in isolation (unique namespaces, cgroups)

What is Docker?

Page 37: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 40

MQ in Docker• MQ 8.0.0.4+ supported to run inside a

Docker image.Details: https://ibm.biz/mqdocker

• IBM samples for customizing and building your own Docker images

– Best practice guidance– Runs an MQ queue manager inside a container, isolated

from the rest of your system

Page 38: CTU 2017 - I168 IBM MQ in the cloud

41

• Lightweight containers for running MQ

• Predictable and standardized units for deploying MQ– Can use the same image to make multiple Queue Managers

• Each setup with the same configuration script

• Process, resource and dependency isolation

Why MQ + Docker

Page 39: CTU 2017 - I168 IBM MQ in the cloud

42

• Docker also supports shared file systems– Can be used for HA/DR of containers

MQ + Docker + HA example

MQ(Active Pair)

MQ(Passive Pair)

NFSFile System

Page 40: CTU 2017 - I168 IBM MQ in the cloud

43

MQ + Docker + HA example

MQ

NFSFile System

Orchestration tool(s)

MQ

Page 41: CTU 2017 - I168 IBM MQ in the cloud

IBM Cloud Technical University 201625 – 28 October 2016|Madrid, Spain

Examples & Conclusion

Page 42: CTU 2017 - I168 IBM MQ in the cloud

MQ

NFSFile System

MQ

The previous examples…

MQ

Load Balancer

Auto-Scaling Group

MQ

GroupManager

Page 43: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 46

Where can i find examples?• Hopefully you’ve seen that IBM MQ can work with

most cloud providers

• But where can you find examples of IBM MQ on the cloud?

Page 44: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 47

Deploying IBM MQ in the cloud– The ways in which MQ is deployed and managed and where it is installed into is continually changing

Sample cookbook for installing and configuring MQ using Chefhttps://github.com/ibm-messaging/mq-chef

Building an MQ OpenStack image and managing it using Heathttps://www.ibm.com/developerworks/community/blogs/messaging/entry/mq_openstack_part1_packer

Designing a self service and as-a-service MQ systemhttp://ibm.biz/mqaas_red

Setting up MQ on Azure for HAhttps://www.ibm.com/developerworks/community/blogs/messaging/entry/How_to_setup_IBM_MQ_Multi_instance_queue_manager_with_Microsoft_Azure_File_Service

Deploying MQ and managing MQ in AWShttps://www.ibm.com/developerworks/community/blogs/messaging/entry/mq_aws_basic

Running MQ in Docker is supported for production usehttps://github.com/ibm-messaging/mq-docker

Page 45: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 48

MQ Ecosystem team• We are very interested to hear what your

experiences with messaging in cloud are:

• Are you trying to:• Implement Messaging in Cloud?• Move messaging to Cloud?

• What cloud do you use?

• Are you doing:• Cloud to Cloud?• Cloud to On-Prem?

Page 46: CTU 2017 - I168 IBM MQ in the cloud

Where can I get more information about IBM MQ?

IBM Messaging developerWorksdeveloper.ibm.com/messagingIBM Messaging Youtubehttps://www.youtube.com/IBMmessagingMedia

LinkedIn Ibm.biz/ibmmessaging Twitter@IBMMessagingIBM MQ FacebookFacebook.com/IBM-MQ-8304628654/

Blog posts tagged with

“cloud”

Page 47: CTU 2017 - I168 IBM MQ in the cloud

For Additional Information IBM Digital Experience Solutions

http://www-01.ibm.com/software/collaboration/digitalexperience

WebSphere Portal and IBM Web Content Manager Information Center Wiki

http://www-10.lotus.com/ldd/portalwiki.nsf/

IBM Digital Experience Demonstrations: http://www.youtube.com/user/IBMXWebX

• IBM Digital Experience Developerhttp://developer.ibm.com/digexp

IBM Software Business Solutions Cataloghttps://greenhouse.lotus.com/catalog/

Page 48: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 51

Rob Parker

Thank you very much.

IBMIBM MQ Ecosystem

[email protected]

Page 49: CTU 2017 - I168 IBM MQ in the cloud

© 2016 IBM Corporation 52

Your feedback is valuablePlease complete your session or lab evaluation!Session number I168

Provide your evaluations by: Evaluation forms:Fill out a form at the end of each session Paper forms are located in each of the session or lab rooms

Complete the session survey on Event Connect Portal:ibmeventconnect.com/madrid2016Select Sessions, then Session Finder, and complete the survey

- Or -

Page 50: CTU 2017 - I168 IBM MQ in the cloud

53

Notes and Disclaimers

Copyright © 2016 by International Business Machines Corporation (IBM). No part of this document may be reproduced or transmitted in any form without written permission from IBM.

U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM.

Information in these presentations (including information relating to products that have not yet been announced by IBM) has been reviewed for accuracy as of the date of initial publication and could include unintentional technical or typographical errors. IBM shall have no responsibility to update this information. THIS DOCUMENT IS DISTRIBUTED "AS IS" WITHOUT ANY WARRANTY, EITHER EXPRESS OR IMPLIED. IN NO EVENT SHALL IBM BE LIABLE FOR ANY DAMAGE ARISING FROM THE USE OF THIS INFORMATION, INCLUDING BUT NOT LIMITED TO, LOSS OF DATA, BUSINESS INTERRUPTION, LOSS OF PROFIT OR LOSS OF OPPORTUNITY. IBM products and services are warranted according to the terms and conditions of the agreements under which they are provided.

Any statements regarding IBM's future direction, intent or product plans are subject to change or withdrawal without notice.

Performance data contained herein was generally obtained in a controlled, isolated environments. Customer examples are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual performance, cost, savings or other results in other operating environments may vary.

References in this document to IBM products, programs, or services does not imply that IBM intends to make such products, programs or services available in all countries in which IBM operates or does business.

Workshops, sessions and associated materials may have been prepared by independent session speakers, and do not necessarily reflect the views of IBM. All materials and discussions are provided for informational purposes only, and are neither intended to, nor shall constitute legal or other guidance or advice to any individual participant or their specific situation.

It is the customer’s responsibility to insure its own compliance with legal requirements and to obtain advice of competent legal counsel as to the identification and interpretation of any relevant laws and regulatory requirements that may affect the customer’s business and any actions the customer may need to take to comply with such laws. IBM does not provide legal advice or represent or warrant that its services or products will ensure that the customer is in compliance with any law

Page 51: CTU 2017 - I168 IBM MQ in the cloud

54

Notes and Disclaimers

Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products in connection with this publication and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. IBM does not warrant the quality of any third-party products, or the ability of any such third-party products to interoperate with IBM’s products. IBM EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

The provision of the information contained herein is not intended to, and does not, grant any right or license under any IBM patents, copyrights, trademarks or other intellectual property right.

IBM, the IBM logo, ibm.com, Aspera®, Bluemix, Blueworks Live, CICS, Clearcase, Cognos®, DOORS®, Emptoris®, Enterprise Document Management System™, FASP®, FileNet®, Global Business Services ®, Global Technology Services ®, IBM ExperienceOne™, IBM SmartCloud®, IBM Social Business®, Information on Demand, ILOG, Maximo®, MQIntegrator®, MQSeries®, Netcool®, OMEGAMON, OpenPower, PureAnalytics™, PureApplication®, pureCluster™, PureCoverage®, PureData®, PureExperience®, PureFlex®, pureQuery®, pureScale®, PureSystems®, QRadar®, Rational®, Rhapsody®, Smarter Commerce®, SoDA, SPSS, Sterling Commerce®, StoredIQ, Tealeaf®, Tivoli®, Trusteer®, Unica®, urban{code}®, Watson, WebSphere®, Worklight®, X-Force® and System z® Z/OS, are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at: www.ibm.com/legal/copytrade.shtml.