editing_profile_resources
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
editing_profile_resources [2021/09/21 15:28] – walkeradmin | editing_profile_resources [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 38: | Line 38: | ||
---- | ---- | ||
- | --- // | ||
==== Editing the encoding profile ==== | ==== Editing the encoding profile ==== | ||
\\ | \\ | ||
- | Open the .yaml file (preferably in an editor that properly supports .yaml file formats (not notepad)) and save it to a new filename. If this is for a PoD per server then you can just save it as a new encoding filename like ' | + | Open the .yaml file (preferably in an editor that properly supports .yaml file formats (not notepad)) and save it to a new filename. |
\\ | \\ | ||
\\ | \\ | ||
- | Below is the format | + | The part of the encoding profile that we are interested in starts with resources: If the file you downloaded does not have this section, download a difference |
\\ | \\ | ||
<code yaml> | <code yaml> | ||
- | mdt-kinds: | ||
- | - kind: profile | ||
- | name: encoding-hd | ||
- | version: '' | ||
- | packages: | ||
- | - deploy-package: | ||
- | version: 25.14.76+4.0.19 | ||
- | - kind: deploy-package | ||
- | deploy-package: | ||
- | name: encoding-live-worker-hd | ||
- | version: 25.14.76+4.0.19 | ||
- | chart: | ||
- | name: encoding-live-worker | ||
- | version: 25.14.76 | ||
- | namespace: '{{ products_var.namespace }}' | ||
- | deploy_list: | ||
- | - mkel-hd1 | ||
- | options: | ||
- | mdt: | ||
- | deployment_stage: | ||
- | upgrade: | ||
- | policy: immediate | ||
- | helm: | ||
- | wait: false | ||
- | timeout: 300 | ||
- | values: | ||
- | image: | ||
- | serverdaemon: | ||
- | repository: '{{ products_var.docker_registry }}/ | ||
- | tag: '{{ products_var.server_daemon.tag }}' | ||
- | worker: | ||
- | repository: '{{ products_var.docker_registry }}/ | ||
- | redis: | ||
- | repository: '{{ products_var.docker_registry }}/ | ||
- | tag: '{{ products_var.redis.tag }}' | ||
- | alarmProxy: | ||
- | repository: '{{ products_var.docker_registry }}/ | ||
- | tag: '{{ products_var.alarm_proxy.tag }}' | ||
- | initcontainer: | ||
- | repository: '{{ products_var.docker_registry }}/ | ||
- | tag: 1.30.1 | ||
- | alarmsViaRedisInWorkerPod: | ||
- | el_worker: | ||
- | server_mngt_nic: | ||
- | mpeg4cfg: | | ||
- | perChannelLicensing=true | ||
- | qsv: | ||
- | enable: false | ||
- | mongo: | ||
- | name: '{{ products_var.mongo.name }}' | ||
- | database: '{{ products_var.mongo.replicasetname }}' | ||
- | replica: '{{ products_var.mongo.replica }}' | ||
- | muhook: | ||
- | enable: '{{ products_var.features.muconv }}' | ||
- | interface: '{{ products_var.server_mngt_nic }}' | ||
- | process_name: | ||
- | log_level: 4 | ||
- | log_output: stderr | ||
- | unified_ui: | ||
- | name: api-gateway | ||
- | rabbitmq: | ||
- | name: '{{ products_var.rabbitmq.name }}' | ||
- | etcd_mu: | ||
- | name: '{{ products_var.etcd.name }}' | ||
- | port: '{{ products_var.etcd.port }}' | ||
- | redis: | ||
- | name: '{{ products_var.redis.name }}' | ||
- | volumes: | ||
- | log: | ||
- | enable: '{{ products_var.log_volume }}' | ||
- | license_server_addr: | ||
- | server_processing_name: | ||
- | nodeSelector: | ||
resources: | resources: | ||
requests: | requests: | ||
cpu: 9 | cpu: 9 | ||
- | privilegedInitContainer: | ||
- | enabled: true | ||
- | command: | ||
- | - sysctl | ||
- | - ' | ||
- | affinity: | ||
- | podAntiAffinity: | ||
- | requiredDuringSchedulingIgnoredDuringExecution: | ||
- | - topologyKey: | ||
- | labelSelector: | ||
- | matchLabels: | ||
- | app: encoding-live-worker | ||
</ | </ | ||
\\ | \\ | ||
- | We need to change a few lines, see below for a side-by-side comparison, where the original text is on the left and the edited text on the right. | ||
\\ | \\ | ||
- | \\ | + | Below is the updated code block where we not only specify |
- | {{ : | + | |
- | \\ | + | |
- | The first three lines we edit are just for the profile names, and the associated deploy package. Line 17 is where we change | + | |
- | \\ | + | |
- | \\ | + | |
- | If you are working with PoD per service, you would enter the service name here, and will only have a single item in your deploy list, bbc1 for instance. You will have to create this file for each service PoD you will require. | + | |
- | \\ | + | |
- | \\ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ==== Adding the new encoding profile to MDT ==== | + | |
- | \\ | + | |
- | Once you have created your new encoding profiles, you can upload them to MDT. To do this use the ' | + | |
- | \\ | + | |
- | \\ | + | |
- | {{ : | + | |
- | \\ | + | |
- | Now select your profile | + | |
- | \\ | + | |
- | \\ | + | |
- | {{ : | + | |
- | \\ | + | |
- | \\ | + | |
- | Once uploaded you will see a confirmation panel. | + | |
- | \\ | + | |
- | \\ | + | |
- | {{ : | + | |
- | \\ | + | |
- | \\ | + | |
- | Click okay. Your new encoding profile will be at the bottom | + | |
- | \\ | + | |
- | \\ | + | |
- | {{ : | + | |
- | \\ | + | |
- | \\ | + | |
- | To make it active, edit the profile, add some nodes and deploy it. | + | |
- | \\ | + | |
- | \\ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ==== Edited encoding profile ==== | + | |
- | \\ | + | |
- | Below is the edited file that was used in this process. | + | |
\\ | \\ | ||
\\ | \\ | ||
<code yaml> | <code yaml> | ||
- | mdt-kinds: | ||
- | - kind: profile | ||
- | name: encoding-sky-hd-01 | ||
- | version: '' | ||
- | packages: | ||
- | - deploy-package: | ||
- | version: 25.14.76+4.0.19 | ||
- | - kind: deploy-package | ||
- | deploy-package: | ||
- | name: encoding-live-worker-sky-hd-01 | ||
- | version: 25.14.76+4.0.19 | ||
- | chart: | ||
- | name: encoding-live-worker | ||
- | version: 25.14.76 | ||
- | namespace: '{{ products_var.namespace }}' | ||
- | deploy_list: | ||
- | - sky-01 | ||
- | options: | ||
- | mdt: | ||
- | deployment_stage: | ||
- | upgrade: | ||
- | policy: immediate | ||
- | helm: | ||
- | wait: false | ||
- | timeout: 300 | ||
- | values: | ||
- | image: | ||
- | serverdaemon: | ||
- | repository: '{{ products_var.docker_registry }}/ | ||
- | tag: '{{ products_var.server_daemon.tag }}' | ||
- | worker: | ||
- | repository: '{{ products_var.docker_registry }}/ | ||
- | redis: | ||
- | repository: '{{ products_var.docker_registry }}/ | ||
- | tag: '{{ products_var.redis.tag }}' | ||
- | alarmProxy: | ||
- | repository: '{{ products_var.docker_registry }}/ | ||
- | tag: '{{ products_var.alarm_proxy.tag }}' | ||
- | initcontainer: | ||
- | repository: '{{ products_var.docker_registry }}/ | ||
- | tag: 1.30.1 | ||
- | alarmsViaRedisInWorkerPod: | ||
- | el_worker: | ||
- | server_mngt_nic: | ||
- | mpeg4cfg: | | ||
- | perChannelLicensing=true | ||
- | qsv: | ||
- | enable: false | ||
- | mongo: | ||
- | name: '{{ products_var.mongo.name }}' | ||
- | database: '{{ products_var.mongo.replicasetname }}' | ||
- | replica: '{{ products_var.mongo.replica }}' | ||
- | muhook: | ||
- | enable: '{{ products_var.features.muconv }}' | ||
- | interface: '{{ products_var.server_mngt_nic }}' | ||
- | process_name: | ||
- | log_level: 4 | ||
- | log_output: stderr | ||
- | unified_ui: | ||
- | name: api-gateway | ||
- | rabbitmq: | ||
- | name: '{{ products_var.rabbitmq.name }}' | ||
- | etcd_mu: | ||
- | name: '{{ products_var.etcd.name }}' | ||
- | port: '{{ products_var.etcd.port }}' | ||
- | redis: | ||
- | name: '{{ products_var.redis.name }}' | ||
- | volumes: | ||
- | log: | ||
- | enable: '{{ products_var.log_volume }}' | ||
- | license_server_addr: | ||
- | server_processing_name: | ||
- | nodeSelector: | ||
resources: | resources: | ||
requests: | requests: | ||
Line 268: | Line 63: | ||
cpu: 15 | cpu: 15 | ||
memory: 10Gi | memory: 10Gi | ||
- | privilegedInitContainer: | ||
- | enabled: true | ||
- | command: | ||
- | - sysctl | ||
- | - ' | ||
- | affinity: | ||
- | podAntiAffinity: | ||
- | requiredDuringSchedulingIgnoredDuringExecution: | ||
- | - topologyKey: | ||
- | labelSelector: | ||
- | matchLabels: | ||
- | app: encoding-live-worker | ||
</ | </ | ||
+ | \\ | ||
+ | You will have to edit the file and upload it with a new set of name(s). Please [[duplicating_encoding_profiles|*** here ***]] for more instructions regarding this. | ||
+ | \\ | ||
+ | \\ |
editing_profile_resources.1632234531.txt.gz · Last modified: 2023/03/09 22:35 (external edit)