Showing posts with label data center. Show all posts
Showing posts with label data center. Show all posts

Thursday, 21 December 2023

data center, nodes,openstack, cloud 101, AZs

https://www.google.com/search?q=openstack&sca_esv=592634044&rlz=1C1GCEA_enCA1060CA1060&tbm=vid&source=lnms&sa=X&sqi=2&ved=2ahUKEwiCntTJg5-DAxXlFTQIHUx3D4gQ_AUoA3oECAYQBQ&biw=1536&bih=735&dpr=1.25#fpstate=ive&vld=cid:3a1c550f,vid:_gWfFEuert8,st:0


cloud 101


clould server vs cluster cloud servers:


Standard Cloud Servers

# Physical Servers


1


Clustered Cloud Servers


12-15


server cluster :


https://www.racksolutions.com/news/blog/server-cluster-how-it-works/


----------------------------------------

open stack is deployed in 1 machine (node) but it can add more node as long as you install open stack on that node 

and disable network manager :


https://tuxfixer.com/add-new-compute-node-to-existing-openstack-using-packstack/




1 server can have multiple public IPS, very costly:


https://www.quora.com/How-many-public-IP-addresses-can-one-server-have


A single server can have multiple public IP addresses assigned to it.


Here are some key points about public IP addresses and servers:


- Public IP addresses allow a server to be accessible over the public internet. Private IP addresses are used for devices on a local network only.


- Most hosting providers will assign a single public IP address to a physical server by default. However, it is possible to assign multiple public IP addresses to a single server.


- Assigning multiple IPs to one server allows you to host multiple websites or services on the same server, each with its IP. This is known as virtual hosting.

--------------------------------------------------------------------------------


network infranstructure of data center


layer 1 (routers , each connected to all switches)


layer2(switches)

--------------------------------------------------------------------------------

servers is the same as hosts/nodes

https://www.quora.com/What-is-the-difference-between-a-server-machine-and-node


The terms "server", "machine", and "node" are often used interchangeably, but they can refer to different things in different contexts. Here are some definitions and examples to help clarify their meanings:


Server: A server is a computer system that provides shared resources or services to other computers or devices on a network. For example, a web server serves web pages to client computers, a file server stores and shares files, and a database server manages databases.

Machine: The term "machine" is generally used to refer to a physical computer, either a desktop, laptop, or server. It can also refer to a virtual machine, which is a software-based simulation of a physical computer that runs its own operating system and applications.

Node: A node is a point of intersection or connection within a network. In computing, a node can refer to a computer, device, or component that is part of a larger network. For example, in a cluster of computers, each computer is a node. In a distributed system, each component is a node.


--------------------------------------------------------------------------------

Load balancer


A load balancer can be either hardware-based or software-based. Hardware load balancers require the installation of a dedicated load balancing device; software-based load balancers can run on a server, on a virtual machine, or in the cloud. Content delivery networks (CDN) often include load balancing features.


https://www.cloudflare.com/learning/performance/what-is-load-balancing/#:~:text=A%20load%20balancer%20can%20be,often%20include%20load%20balancing%20features.


--------------------------------------------------------------------------------


flavour is hardware configuration for a vm /node/server, RAM, disk cpus etc 

--------------------------------------------------------------------------------

data center


servers, data storage drives, and network equipment. It is the physical facility that stores any company's digital data.


https://www.youtube.com/watch?v=XZmGGAbHqa0



computers are put in rack


can contain multiple server

https://www.trgdatacenters.com/what-is-a-data-center-rack/#:~:text=A%20data%20center%20rack%20is,Airflow


--------------------------------------------------------------------------------




--------------------------------------------------------------------------------

openstack 


open stack can be deployed in one physical or virtual machine

4 core 64 cpu 16gb of ram 50 gb storage, static ip, latest ubuntu 

--------------------------------------------------------------------------------

add more nodes top open stack:

https://tuxfixer.com/add-new-compute-node-to-existing-openstack-using-packstack/


or u can use open stack web UI fuel:


https://docs.openstack.org/fuel-docs/mitaka/userdocs/fuel-user-guide/configure-environment/add-nodes.html


Fuel is an open-source software application that simplifies the deployment of highly available OpenStack environments, as well as enables you to manage your OpenStack environments after deployment.


https://specs.openstack.org/openstack/fuel-specs/_images/deployment_in_progress.png

--------------------------------------------------------------------------------




nova is to create instances 

has computing nodes 




horizon dashboard 

(Horizon is the canonical implementation of Openstack's Dashboard, which provides a web based user interface to OpenStack services including Nova, Swift, Keystone, etc.)


openmetal  deployment



Nova computing daemon on node(server) is used to create VM 


https://www.geeksforgeeks.org/what-is-openstack-nova-service/


https://www.linuxtechi.com/create-availability-zones-openstack-command-line/


https://docs.hpc.cam.ac.uk/cloud/userguide/03-nova.html#:~:text=The%20OpenStack%20Compute%20Service%20(Nova,and%20manage%20cloud%20computing%20systems.




Whenever OpenStack is deployed, Nova is the default Availability Zone(AZ) created automatically and all the compute nodes belongs to Nova AZ. Run the below openstack command from the controller node to list Availability zones,



AZ nova is different from nova the computing daemon !




regions, availibity zone


!!!!!!!!!!!!!!!!!!

Contrast aggregates with availability zones (AZ) in OpenStack, which are customer-facing and usually partitioned geographically. To cement the concept, think of availability zones and flavors as customer-accessible subsets of host aggregates.


!!!!!!!!!!!

https://www.datadoghq.com/blog/openstack-host-aggregates-flavors-availability-zones/


https://www.linuxtechi.com/create-availability-zones-openstack-command-line/


====================================================================================================================================================


open stack deployment using openmetal :




https://www.google.com/search?q=openstack+openmetal&sca_esv=593118487&rlz=1C1GCEA_enCA1060CA1060&tbm=vid&source=lnms&sa=X&ved=2ahUKEwiKr_vCxqODAxXTLDQIHbqIBRIQ_AUoAnoECAIQBA&biw=1536&bih=735&dpr=1.25#fpstate=ive&vld=cid:3a1c550f,vid:_gWfFEuert8,st:0






default has an admin project



Daemon

Computing

In multitasking computer operating systems, a daemon is a computer program that runs as a background process, rather than being under the direct control of an interactive use



same as AWS just more complex




open stack 

divides into services

allow you to plugin components

open stack block storage -> components

web front end -> horizon (manage resources)



openmetal on demand private cloud use to deploy openstack on a a server


set up openstack on openmetal



openmetal set up on a machine



set up public key(from your current machine)



open metal comes with 

three servers (control plane nodes)


can access directly as root user from ssh



openstack hosted on a server

to access need paste server public key for ssh



horizon is openstack dashboard



cloud is divided into project, associated with user and roles


resource limits per project defined by admin with quotas



project tab


admin tab 


indentity tab 

-> projects

-> default unmodified project (should not touch)

-> after a project has been created, u can modify quota  like maxium instances, vcpus, rams

!!!these come from the computing nodes of AZs u select when you create an instance 

-> it will go to that computing node in that AZ to allocate that for u 


    -> domain (optional) name

-> project member, groups

-> can adjust quaotas for this project

-> action column -> modify quota

-> can specify instances, vcpus, volumnes*, network *


-> create user and associate user with projects

-> user tab

-> create new user

-> specify project and roles(for instance member)

->user logged in will see projects directly



-> managing creating images (copy of linux installation)

-> by default there are already ubuntu instances 



glance -> allows user to upload images 


-> click images -> create image -> upload image file 


-> create instance (VM) in open stack horizon 

- !!!! can select availibity zone which belongs to aggregated hosts which has bunch of availble computing nodes (serrver)


-> NOVA (manage computed instances) in openstack 


-> NOVA runs a set of daemon on top of linux servers

-> create private network and route 

-> project -> network -> networks 

-> create private network to connect cloud public network 

-> create network 

-> name (private)

-> external NO

-> shared NO (shared between diff networks)

-> subnet -> enter network address (cidar notation )

-> gateway IP(router)

-> subnet keep dhcp 

-> there is a default network named external ,  external option is YES (this is used to hook up with router), and also shared option is yes

-> create router to bridge connection between private network and public

-> project -> network -> router -> create router , select external network you have(default external ), 

(below step allow private netwoork to connect to router(add interface))

-> select router -> interface -> add interface -> subnet -> choose the private subnet created from private network (it will show)


-> project -> network

network toplogy (see how external network is connected to internal network)

-> security groups (for instances, 22 can be opened for single IP or group of IP)

-> project -> network -> security group , only open ports required for needed IP ranges

nova -> computing daemon on a node(server)


Nova runs as a set of daemons on top of existing Linux servers (Compute Node) to provide that


https://docs.hpc.cam.ac.uk/cloud/userguide/03-nova.html#:~:text=The%20OpenStack%20Compute%20Service%20(Nova,and%20manage%20cloud%20computing%20systems.