Bài đăng

RTP AND RTCP

Hình ảnh
- Thuật toán tính toán khoảng thời gian truyền RTCP  double rtcp_interval(int members, int senders, double rtcp_bw, int we_sent, double avg_rtcp_size, int initial) { double const RTCP_MIN_TIME = 5.; double const RTCP_SENDER_BW_FRACTION = 0.25; double const RTCP_RCVR_BW_FRACTION = (1-RTCP_SENDER_BW_FRACTION); double const COMPENSATION = 2.71828 - 1.5; double t; /* interval */ double rtcp_min_time = RTCP_MIN_TIME; int n; /* no. of members for computation */ if (initial) { rtcp_min_time /= 2; } n = members; if (senders > 0 && senders < members * RTCP_SENDER_BW_FRACTION) { if (we_sent) { rtcp_bw *= RTCP_SENDER_BW_FRACTION; n = senders; } else { rt...

HOW TO INSTALL ORACLE JDK ON DEBIAN AND UBUNTU

https://drive.google.com/file/d/1FC-7823rjmd0l_IOwNO7DwH4-9SEqfAl/view?usp=sharing

Mối quan hệ các thành phần trong Docker

Hình ảnh
- Chức năng chính docker : ship, build , run container - Mô hình thể hiện mối quan hệ các thành phần docker ; Mối quan hệ của Docker Image, Container, Network, Volume - Vòng dời của container:

Redirect TOMCAT to home page.

Redirect TOMCAT to home page. Open  webapp/ROOT/WEB-INF/web.xml , remove any servlet mapping with path  /index.html  or  /index.jsp , and save. Remove  webapp/ROOT/index.html , if it exists. Create the file  webapp/ROOT/index.jsp  with this line of content: <% response . sendRedirect ( "/some/where" ); %> or if you want to direct to a different server, <% response . sendRedirect ( "http://otherserver.example.com/some/where" ); %>

Redirect TOMCAT to https

Redirect TOMCAT to https Edit file server.xml Example server.xml file: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 <?xml version='1.0' encoding='utf-8'?> <Server port= "8005" shutdown= "SHUTDOWN" > <Listener className= "org.apache.catalina.core.AprLifecycleListener" SSLEngine= "on" /> <Listener className= "org.apache.catalina.core.JasperListener" /> <Listener className= "org.apache.catalina.mbeans.ServerLifecycleListener" /> <Listener className= "org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <GlobalNamingResources> <Resource name= "UserDatabase" auth= "Container" type= "org.apache.catalina.UserDatabase" description= "User database th...

Transaction and Shrink in SQL

Hình ảnh
-           -  Transaction log là gì ? o    Transaction log là thành phần trong SQL Server. Mỗi database sẽ có 1 hoặc   nhiều transcaction log chứa tất cả records ghi lại tất cả thông tin chỉnh sửa liên quan đến database. -          -   Tại sao lại có transaction log? o    Transaction log có thể giúp phục hồi dữ liệu trở về một thời điểm mong muốn. Và vì transaction log đảm bảo hiệu xuất xử lý. Vì datafile lưu trữ dữ liệu theo cơ chế ngẫu nhiên nên nếu mỗi thao tác cập nhật đều ghi trực tiếp vào data file sẽ khiến database bị chậm. Transcation log sẽ giúp việc cập nhập dữ liệu theo cơ chế tuần tự. o    Mỗi thao tác làm thay đổi tới dữ liệu sẽ dược ghi vào các record của transactin log. Còn giá trị dữ liệu   (data pages) sẽ được lưu tạm tong buffer của bộ nhớ RAM đê xử lý. Khi chỉnh sửa dữ liệu cũng chính là xử lý trên data pages trên ram ( dữ liệu được chỉnh sữa gọi là Di...

Kafka Monitoring with Prometheus and Grafana

Hình ảnh
The reference setup uses 3 applications: Prometheus jmx_exporter in either server or agent mode Grafana Installation and setup - structure directory :    - Root:              - kafka              -  kafka-monitor / prometheus :                                   jmx_prometheus_javaagent-0.11.0.jar                                   kafka-2-0-0.yml                                   prometheus:                                                      prometheus         ...