4349 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 89 / 218
Newer►
  • QoS (traffic control) under linux with tc

    Problème assez simple : lorsque je télécharge des vidéos de vacances sur mon serveur, la connexion est saturée et je ne peux plus rien faire sans latence (ssh, web, jeux..)

    Pour résoudre ce problème, j'ai limité l'upload de mon serveur de façon basique le temps de mieux comprendre tc (et sa partie classful) :
    tc qdisc add dev eth0 root tbf rate 6000kbit latency 50ms burst 10000

    Et ça marche bien :-) Je limite l'upload à 6000kbit/s soit la moitié de
    Sans cette politique je dl à 12Mbit/s depuis chez moi soit environ 1,5MBytes/s (1,5Moctets/s)
    Une fois la qdisc appliquée je chute de moitié. Un peu violent, mais au moins personne n'est pénalisé lorsque quelqu'un télécharge ^^ Je vais tenter d'augmenter un peu cette limite pour voir jusqu'où je peux aller.

    Ce n'est cependant pas parfait, ce workaround ne fonctionne que lorsqu'on télécharge sur mon serveur, il faudrait avoir un routeur à la maison (ex : raspberry) et le faire dessus avec des qdisc classful pour limiter suivant le type de flux

    PS :

    Pour voir et supprimer cette politique :
    tc qdisc show dev eth0
    tc qdisc del dev eth0 root

    Choix de la valeur de 'burst' :
    C'est la taille en bytes du bucket. Elle doit être un minimum de : rate/HZ. Pour trouver son HZ :

    egrep '^CONFIGHZ[0-9]+' /boot/config-uname -r

    CONFIG_HZ_250=y

    Donc pour un rate de 6000kbit/sec = 6 000 000 bit/sec, on a :
    burst_mini = 6 000 000 / 250 = 24000 bits = 3000 bytes

    Et pour le burst maximum, on prend le rate max du server : 100Mbps = 100 000 000 bit
    burst_max = 100 000 000 / 250 = 400 000 bits = 50 000 bytes

    Il faut choisir une valeur dans cet intervalle, c'est la "réserve" qui sera disponible quand on commencera un téléchargement.
    50 000bytes, ça fait 50Mo, donc les 50 premiers Mo du téléchargement ne seront pas limités ce qui fait un peu trop.

    January 25, 2015 at 1:10:00 PM GMT+1 - permalink - archive.org - https://links.infomee.fr/?ETbYCQ
    tc
  • 'Re: exception in thread? in Net::SSH::Multi' - MARC

    errs = []
    def test_server(errs, server)
    lambda do |options|
    begin
    server =~ /(.+)@(.+)/
    server_name, user = $2, $1
    puts server_name
    s = Net::SSH.start(server_name, user)
    s.close
    s = server
    rescue Errno::EHOSTUNREACH, SocketError
    puts "echec connexion #{server} : #{$!}"
    errs << server
    s = nil
    end

        return s
    end

    end

    Net::SSH::Multi.start(:on_error => :warn) do |session|

    define the servers we want to use

    session.use &test_server(errs, 'root@srv-04')
    session.use &test_server(errs, 'root@srv-07')
    session.use &test_server(errs, 'root@srv-08')
    session.use &test_server(errs, 'root@fail-08.local')

    execute commands on all servers

    session.exec( "hostname" )

    run the aggregated event loop

    session.loop
    end

    unless errs.empty?
    puts "The command failed on #{errs.size} hosts"
    end

    January 23, 2015 at 3:05:30 PM GMT+1 - permalink - archive.org - http://marc.info/?l=ruby-talk&m=122278906522776&w=2
    multissh ruby ssh
  • MySQL Query Performance Statistics In The Performance Schema - VividCortex
    January 23, 2015 at 2:51:45 PM GMT+1 - permalink - archive.org - https://vividcortex.com/blog/2014/11/03/mysql-query-performance-statistics-in-the-performance-schema/
    mysql stat
  • lartc | inetdoc.net

    traffic control

    January 21, 2015 at 5:01:39 PM GMT+1 - permalink - archive.org - http://www.inetdoc.net:8080/guides/lartc/lartc.qdisc.html
    tc
  • fish shell

    Sympa l'auto completion de ce shell

    January 20, 2015 at 3:09:07 PM GMT+1 - permalink - archive.org - http://fishshell.com/
    shell
  • 25 Tips for Intermediate Git Users
    January 18, 2015 at 2:49:24 PM GMT+1 - permalink - archive.org - https://www.andyjeffries.co.uk/25-tips-for-intermediate-git-users/
    git
  • Utiliser sa ChromeCast en ligne de commande - Korben

    Je me mets ça au chaud

    January 18, 2015 at 2:48:58 PM GMT+1 - permalink - archive.org - http://korben.info/castnow-chromecast-ligne-de-commande.html
    chromecast
  • Linux / Unix: Test Internet Connection Speed From Console Over SSH Command Line
    January 18, 2015 at 2:48:35 PM GMT+1 - permalink - archive.org - http://www.cyberciti.biz/faq/linux-unix-test-internet-connection-download-upload-speed/
    connection speed speedtest test
  • thumbnail
    Why aren’t we using SSH for everything? — Medium
    January 18, 2015 at 2:47:54 PM GMT+1 - permalink - archive.org - https://medium.com/@shazow/ssh-how-does-it-even-9e43586e4ffc
    ssh
  • Get Rid of Deleted Open Files - Linux Quick HOWTO

    lsof|grep deleted

    January 18, 2015 at 2:47:30 PM GMT+1 - permalink - archive.org - http://www.lazysystemadmin.com/2010/09/get-rid-of-deleted-open-files-linux.html
    lsof
  • Mosh: the mobile shell
    January 18, 2015 at 2:47:04 PM GMT+1 - permalink - archive.org - https://mosh.mit.edu/
    client lag mobile ssh
  • ferd.ca -> Awk in 20 Minutes

    Ce tuto est bien fait
    Mais j'ai un peu de mal avec awk : pour des tâches simple je m'en sors avec cut, et pour des tâches plus complexes je passe à un vrai langage de scripting comme python

    January 18, 2015 at 2:45:25 PM GMT+1 - permalink - archive.org - http://ferd.ca/awk-in-20-minutes.html
    awk
  • SysAdvent: So Server, Tell Me About Yourself — An Intro to Facter, Osquery & Sysdig | Puppet Labs
    January 18, 2015 at 2:44:39 PM GMT+1 - permalink - archive.org - https://puppetlabs.com/blog/sysadvent-so-server-tell-me-about-yourself-intro-facter-osquery-sysdig?ls=social-media&ccn=twitter-product-20141222&cid=701G0000000F68P
    debug facter linux osquery sysdig
  • DevOps in Federal Government, a High Level Approach | Davila.io
    January 18, 2015 at 2:44:16 PM GMT+1 - permalink - archive.org - http://davila.io/2014/10/14/devops-in-federal-government-a-high-level-approach/
    devops sysadmin
  • Terrible choices: MySQL | ionel's codelog

    Dans l'idéal il ne faudrait pas utiliser les paramètres par défauts et lire 100 de la doc pour faire sa propre conf... dans l'idéal.

    January 18, 2015 at 2:43:20 PM GMT+1 - permalink - archive.org - http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/
    mysql
  • Exploiter inotify, c’est simple - LinuxFr.org

    simple mais fonctionne une fois sur deux suivant le workflow..

    January 18, 2015 at 2:42:56 PM GMT+1 - permalink - archive.org - http://linuxfr.org/news/exploiter-inotify-c-est-simple
    inotify
  • Using ngrep | Mike Toscano | Blog

    ngrep -itq -d any -W byline

    Lorsque je veux inspecter le payload, je n'utilise plus du tout tcpdump mais ngrep

    Contrairement à tcpdump, l'option pour spécifier l'interface est -d est non pas -i

    January 18, 2015 at 2:41:16 PM GMT+1 - permalink - archive.org - http://blog.miketoscano.com/?p=66
    ngrep tcpdump
  • thumbnail
    What is a SSH key fingerprint and how is it generated? - Super User

    Dans les logs d'accès ssh (/var/log/auth.log), si vous avez passé le loglevel de SSH à VERBOSE, vous pouvez voir pour chaque accès la clé qui a été utilisé.
    Le format est différent de celui dans authorized_keys pour des raisons de lisibilité j'imagine.. Pour faire la conversion depuis authorized_keys vers ce format :

    echo key | base64 | md5
    ou
    ssh-keygen -lf key.pub

    January 18, 2015 at 2:38:57 PM GMT+1 - permalink - archive.org - http://superuser.com/questions/421997/what-is-a-ssh-key-fingerprint-and-how-is-it-generated
    fingerprint key ssh
  • thumbnail
    GTD and Offloading

    Il faudra que je relise GTD, même en ne l'appliquant pas à 100%, je suis totalement d'accord avec l'article

    January 18, 2015 at 2:38:02 PM GMT+1 - permalink - archive.org - https://danielmiessler.com/blog/gtd-offloading/
    gtd
  • thumbnail
    Docker & Puppet for Application Management — and Sanity | Puppet Labs
    January 18, 2015 at 2:37:21 PM GMT+1 - permalink - archive.org - http://puppetlabs.com/blog/docker-and-puppet-for-application-management
    docker puppet
Links per page: 20 50 100
◄Older
page 89 / 218
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation