Skip to content

Commit

Permalink
Merge branch 'feature/readme-k8s-config' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
x1wins committed Feb 21, 2021
2 parents 76e972b + 85bb5fd commit 6cdf7c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
2 changes: 2 additions & 0 deletions DOCKER-SWARM.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* [Changing Scale](#Changing-Scale)
* [Update latest image](#Update-latest-image)
* [Trouble shooting](#Trouble-shooting)
* [Docker Swarm with Jenkins](/DOCKER-SWARM-JENKINS.md)


## Introduction Scale Out with Docker Swarm
CW-OVP can have many background job for video packaging and encoding with ffmpeg.
Expand Down
26 changes: 9 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* [Skill Stack](#Skill-Stack)
* [Feature](#Feature)
* [System Structure](#System-Structure)
* [Docker Swarm with Scale out](#Docker-Swarm-with-Scale-out)
* [Minimum Requirements for Production](#Minimum-Requirements-for-Production)
* [Roadmap](#Roadmap)
* [Getting started](#Getting-started)
Expand All @@ -17,7 +16,6 @@
* [How To Run Development mode without docker](#How-To-Run-Development-mode-without-docker)
* [Deploy](#Deploy)
* [Docker Swarm](#Docker-Swarm)
* [Docker Swarm with Jenkins](#Docker-Swarm-with-Jenkins)
* [Kubernetes](#kubernetes)
* [Sample video file download](#Sample-video-file-download)

Expand Down Expand Up @@ -54,10 +52,12 @@ OVP(online video platform)란<br/>
|Sidekiq|background job, queue|
|Postresql|database|
|Docker, docker-compose|install environment|
|Docker Swarm|Clustering (Scale out)|
|Docker Swarm|Clustering|
|Kubernetes|Clustering|
- you can choose Docker swarm or Kubernetes(kops or EKS) for Clustering

## Feature
- Clustering ffmpeg worker with sidekiq on docker swarm
- Clustering ffmpeg worker with sidekiq on Docker swarm or Kubernetes
- Transcoding, Packaging with ffmpeg for HLS
- Generated multiple m3u8 for Adaptive Streaming
- Extract 10 random Thumbnail images during video packaging
Expand All @@ -68,16 +68,11 @@ OVP(online video platform)란<br/>

## System Structure
![cw-ovp-system-structure.png](cw-ovp-system-structure.png)
### Docker Swarm with Scale out
|master node|slave-1 node|slave-2 node|you can scale out slave node...|
|---|---|---|---|
|redis|sidekiq|sidekiq|sidekiq...|
| |ffmpeg|ffmpeg|ffmpeg...|
|postgresql||||
|ruby on rails||||
- If your node for database that got fault or something wrong, You can lost persistent in database. that's why I recommend AWS RDS for postgresql.

## Minimum Requirements for Production
- Required AWS S3, Cloudfront [.env.dev.s3](/.env.dev.s3)
- Required AWS S3 for Storage
- Required AWS Cloudfront for CDN
- Server Spec
- CPU
- 4 or 8 more Cpu per server (c5.xlarge on aws ec2)
Expand Down Expand Up @@ -143,16 +138,13 @@ OVP(online video platform)란<br/>
docker-compose run --no-deps web bundle exec rails console
```

### How To Run Development mode without docker
### How To Run Development mode without docker
[SETUP_WITHOUT_DOCKER.md](/SETUP_WITHOUT_DOCKER.md)

## Clustering Deploy for Production
## Deploy
### Docker Swarm
[DOCKER-SWARM.md](/DOCKER-SWARM.md)

### Docker Swarm with Jenkins
[DOCKER-SWARM-JENKINS.md](/DOCKER-SWARM-JENKINS.md)

### kubernetes
[Setup k8s with kops](/k8s-manifests/SETUP_K8S.md)

Expand Down

0 comments on commit 6cdf7c8

Please sign in to comment.