rivendell - par où commencer l’installation ?

37
Rivendell Genèse de l'installation Radio Larzac Millau 22 août 2009 Alban Peignier Florent Peyraud http://www.tryphon.org

Upload: tryphon

Post on 26-Dec-2014

2.243 views

Category:

Technology


2 download

DESCRIPTION

La mise en production de Rivendell ne se limite pas à installer un package sur une machine. De nombreuses questions se posent lors de la préparation de son installation.

TRANSCRIPT

Page 1: Rivendell - Par où commencer l’installation ?

Rivendell

Genèse de l'installation

Radio Larzac

Millau

22 août 2009

Alban Peignier

Florent Peyraud

http://www.tryphon.org

Page 2: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 2

Rivendell - Genèse

● Points à aborder avant l'installation

– Décisions organisationnelles– Choix techniques : matériels, logiciels

● Pas de présentation :

– des fonctionnalités– des applications– des étapes d'installation

Page 3: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 3

Vue d'ensemble

● Serveur (NAS)

– Fichiers (/var/snd, NFS)– Mysql

● Station Studio

– Son : carte, alsa, jackd– Rivendell : daemons, rdairplay

Page 4: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 4

Vue d'ensemble

● Pourquoi séparer ?

– Séparer IO disques et son– Bruit– Disponibilité– Tâches de fond sur le NAS

● Pourquoi réunir ?

– Mobilité– Low Cost

Page 5: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 5

Usage

● Aspects

– Live Assist– Diffusion automatique

● Principaux problèmes

– Organisation– Formation– Et finalement informatique

Page 6: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 6

Usage - Live Assist

● Remplacer :

– CD, MD, K7, xmms, itunes● Migration des supports

– Préparée, progressive– Identifier les valeurs ajoutées

● Beaucoup de sorties audio

– 3, 4 tranches sur votre table● Unique solution : Maitrise

Page 7: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 7

Usage - Diffusion automatique

● Programmation musicale

– Cycle de vie des Carts MUSIC– Music sheduler externe ?

● Phase de préparation :

– Etude approfondie des fonctionnalités– Revue des process internes– Développements additionnels– Tests

● Migration

Page 8: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 8

Machine de test

● Tout en un● Objectifs :

– Valider les évolutions– Reproduire une anomalie– Formation

● Eviter :

– Bidouilles en production– Tester une nouvelle version sur les données

de production

Page 9: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 9

Machine de test

● Matériel

– Moins puissant– Carte son “normale”– Même carte mêre

● Logiciel

– “Pareil”

Page 10: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 10

Installation - distribution

● Laquelle ?

– celle que votre équipe maitrise le mieux● Par défaut :

– Debian (stable, lenny) ou Ubuntu– OpenSuse

Page 11: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 11

Installation – packaging

● Même version sur tout le réseau● Source ?

– ca devient votre problème– vos propres packages ?

● Valider, valider

Page 12: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 12

Station – Carte Son

● Modèle :

– M-Audio Delta 1010● 8 sorties :

– Main1– Main2, Aux 1, Aux 2– Sound Panel– Cue, RdLibrary

Page 13: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 13

Station – Carte Son

● Calibrée

– Cart 1000Hz– Référence de Rivendell : -13dbFS

● Eviter les parasites

– Mixers– Players

Page 14: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 14

Station – Jackd

● ou alsa● Realtime● Réglages classiques :

– 44100 Hz, 32 bits, Latence “normale”– Playback si possible

● Objectif : Stabilité

– 24h/24, on ne peut pas “rebooter”– quelques xruns par semaine

Page 15: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 15

Station – Jackd – Tuning

● Tester, optimiser

– Jackd + jack.play– IO : disque, réseau, carte video– Xruns : perdu

● Points classiques :

– Interruptions, Acpi– Cartes mères lentes sur les IO– Versions : kernel, alsa, jackd– Périphériques USB

Page 16: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 16

Station – Jackd – Tuning

● Communauté :

– Mailing-lists : ● jackd users, ● linux audio, ● rivendell, ● radio-logiciel-libre

– Problématiques studio / radio– Attention aux légendes

Page 17: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 17

Station – (re)boot

● Au boot : daemons

– Jackd– caed, ripcd, rdcatchd

● Auto login (gdm, kdm)● Avec la session :

– qjackctl– rdairplay– Plus : meterbridge, jamin, ...

● Outils : devilspie, molly-guard

Page 18: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 18

Station – interface

● Clavier, souris bien placés● Bien utilisé la “place”

– rdairplay utilise 1024x768– dual display– rdairplay, meterbridge, irc, gkrellm

● Tactile

– Prix : 15” en 1024x768, neuf > 500€– Position de l'écran

Page 19: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 19

Station – interface

● Plusieurs workspaces :

– Diffusion : rdairplay, meterbridge– Administration : rdlibrary

● Remote : VNC

– Plus facile à distance– Attention aux performances– X (remote, SSH) ?

● Couper la mise en veille des écrans

Page 20: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 20

Stockage

● Ogg ?● Volumétrie

– 1 Tera Octet : ● 6233059 secondes● 1731 heures 24 minutes● 72 jours, 3 heures, 24 minutes● ~ 150 € (x2 ou x1.5)

– 5 Teras Octet : 1 an● Rivendell n'est pas votre stockage

Page 21: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 21

Stockage - contenu

● Problèmes

– Volume – Ergonomie

● Contenus :

– Jingles, générique (année)– Musique : pourcentage “utile”– Emissions : seules à venir

● Penser au reste (hors rivendell)

Page 22: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 22

Stockage – disques

● Hardware

– SATA en RAID 1 ou RAID 5– Prendre le meilleur prix au Go– Boitier– Carte Gigabit

● Exemples

– RAID 1 : 1To = 2 x 1To (~ 160€)– RAID 5 : 2.6 To = 4 x 1To (~ 320€)

● Onduleur

Page 23: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 23

Stockage – disques

● LVM

– Extension RAID délicate● Partitions

– /var/snd – /var/lib/mysql (< 1 Go)– Filesystem : ext3

● Métier

– Littérature, communauté

Page 24: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 24

Stockage – Mysql

● Mysql 5● Petite base● Pas de charge sans nombreux postes● Accès distant

– bind-address = 0.0.0.0– User mysql : radio@%

Page 25: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 25

Stockage – NFS

● Gigabit ?● Exporter /var/snd● Montage

– Sur tous les stations rivendell– Même répertoire : /var/snd– Tuning : rsize, wsize, timeo, ...

● Même utilisateur unix (radio)● Danger : deadlock NFS

Page 26: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 26

Stockage – Backup

● Contenus

– dump mysql– /var/snd

● Objectif

– Restauration après catastrophe– Pas retrouver émission perdue

Page 27: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 27

Stockage – Backup

● Solutions

– backup-manager, rsync– disque(s) externe(s)– serveur distant sur le même site (?)

● Sortir les backups● Penser au temps de restauration

Page 28: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 28

Stockage – Import

● Fonction importante

– Alimenter Rivendell, votre antenne– Répétitif donc Rapide, sûr, réactif

● Imports automatiques

– Copie d'un fichier dans un répertoire– Quand le GUI n'a pas de valeur ajoutée– Réalisé à distance, d'avance– Traitement local sur le NAS

Page 29: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 29

Stockage – Import

● S'adapter à votre organisation● Cron + scripts

– Cron, incron– Scripts et rdimport– Notifications : mail, irc

● DropBox rdimport● Station d'administration ou dédiée

– Insertion CD, clés USB

Page 30: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 30

Stockage – Import

● Exemple : répertoire par groupe :

– .../rivendell/PAD– .../rivendell/MUSIC– Copie + “suppression”

● Exemple : répertoires par émission

– ../emission-xyz/semaine-mn/pad/– ../emission-xyz/semaine-mn/musique/– Détection par checksum

Page 31: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 31

Stockage – Nettoyage

● Sélection :

– par date de dernière diffusion● Solution

– extraire les Cart Numbers via une requete– rdimport –delete-cuts– Cron hebdomadaire

● Logger, notifier par mail

Page 32: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 32

Configuration – Groups

● Classique :

– Défaut : BEDS, MUSIC, TRAFFIC, ...– MUSIC, JINGLE, GENERIQUE, PAD– Complements : Scheduler codes et Usage

● Autres exemples :

– Pour supprimer plus facilement : ● JINGLE_08, MUSIC_NOEL

– Pour trouver plus facilement :● PAD_MATINALES, PAD_JOURNAL

Page 33: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 33

Configuration – Hosts

● Un host par machine● Audio

– Audio ports– Channel assignments

● Valeurs par défaut

– Utilisateur par défaut, ...● Configurations des applications

– Rdairplay, rdlibrary, rdlogedit, ...

Page 34: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 34

Configuration – Users

● Mode : “Pas” d'utilisateurs

– admin, radio– radio : unix, mysql, rivendell

● Mode : multi utilisateurs

– Equipe importante– Souvent relier aux utilisateurs unix (ldap,

pam_rd, ...)

Page 35: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 35

Supervision

● Surveiller

– Load, espace disque● NAS :

– Disques durs (smart)● Station :

– Processus : jackd, daemons rivendell, rdairplay

● Nagios / Munin

Page 36: Rivendell - Par où commencer l’installation ?

Rivendell - Genèse - http://tryphon.org 36

Stations d'administration

● [TODO]

Page 37: Rivendell - Par où commencer l’installation ?

Questions

Pour continuer la discussion

[email protected]

[email protected]

http://www.tryphon.org