Docker Cookbook



Download 6,31 Mb.
Pdf ko'rish
bet244/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   240   241   242   243   244   245   246   247   ...   260
Bog'liq
Docker Cookbook

Solution
Amazon S3 is the leading cloud-based object storage service. Since it came online,
several storage backends have developed an S3-compatible API frontend to their dis‐
tributed storage system: 
RiakCS

GlusterFS
, and 
Ceph
. The 
Apache Cassandra
dis‐
tributed database is also a good choice, and recently a project called 
Pithos
has started
that builds an S3-compatible object store on top of Cassandra.
This is particularly interesting because Cassandra is widely used in the enterprise.
However, for Docker this might be challenging as you would need to build a Cassan‐
dra cluster using Docker containers. Thankfully, with a cluster manager/container
orchestration system like Kubernetes, it is relatively painless to run a Docker-based
Cassandra cluster. The Kubernetes documentation has an 
example
of how to do it.
Therefore, to build our S3 object store, you are going to run a Cassandra cluster on
Kubernetes and run a Pithos frontend that will expose an S3-compatible API.
It is possible to do the same with Docker Swarm.
To start, you need to have access to a Kubernetes cluster. The easiest way is to use
Google Container Engine
 (see 
Recipe 8.10
). If you do not want to use Google Con‐
tainer Engine or need to learn about Kubernetes, check 
Chapter 5
and you will learn
how to deploy your own cluster. Whatever technique you use, before proceeding, you
should be able to use the 
kubectl
client and list the nodes in your cluster. For example:
$ ./kubectl get nodes
NAME LABELS STATUS
k8s-cookbook-935a6530-node-hsdb kubernetes.io/hostname=...-node-hsdb Ready
k8s-cookbook-935a6530-node-mukh kubernetes.io/hostname=...-node-mukh Ready
k8s-cookbook-935a6530-node-t9p8 kubernetes.io/hostname=...-node-t9p8 Ready
k8s-cookbook-935a6530-node-ugp4 kubernetes.io/hostname=...-node-ugp4 Ready
You are now ready to start a Cassandra cluster. You can use the Kubernetes 
example
directly or clone my own repo:

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   240   241   242   243   244   245   246   247   ...   260




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish