[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27386: offloading documentation and env

From: Oleg Pykhalov
Subject: bug#27386: offloading documentation and env
Date: Thu, 06 Jul 2017 16:15:08 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> Hmm could it be that ‘machine-load’ in (guix scripts offload) always
> returns +inf.0, for instance because it fails to run “cat /proc/loadavg”
> on the remote machine?  (If it succeeded we would see the message “load
> on machine XYZ is N”.)
> https://git.savannah.gnu.org/cgit/guix.git/tree/guix/scripts/offload.scm#n393

Can I actually look what is happening somehow?

> What does “ssh address@hidden -i KEY cat /proc/loadavg” return,
> where USER and KEY are those specified in your machines.scm file?

address@hidden ~$ 
(list (build-machine
             (name "magnolia.local")
             (system "x86_64-linux")
             (host-key "ssh-ed25519 
             (user "natsu")
              (string-append (getenv "HOME")
             (speed 2.)))
ssh address@hidden -i $HOME/.ssh/identity-for-guix cat /proc/loadavg
0.05 0.08 0.02 1/247 13756

reply via email to

[Prev in Thread] Current Thread [Next in Thread]