Remote Access: Unterschied zwischen den Versionen

Aus Doc-Wiki
Zur Navigation springen Zur Suche springen
imported>Gtest2
imported>Burghardt
Zeile 26: Zeile 26:
   
 
Please note that these clients reboot automatically early in the morning to clean up things - but only if nobody is logged in...
 
Please note that these clients reboot automatically early in the morning to clean up things - but only if nobody is logged in...
  +
   
 
== Problems with shared resources ==
 
== Problems with shared resources ==
   
System resources are limited: <tt>login.stud.informatik.uni-goettingen.de</tt> is a shared source in more intense way than those pool computers are. There is only ''one single'' login.stud.
+
System resources are limited, those login machines are a shared source in more intense way than those pool computers are.
   
 
It is considered unfriendly behavior to stress a shared resource in such a manner that other users can not work anymore.
 
It is considered unfriendly behavior to stress a shared resource in such a manner that other users can not work anymore.

Version vom 10. März 2017, 08:44 Uhr

Goal

You might want to use our pool infrastructure - which means any pool client c001 to c048 - from a remote location, for example from home. This is totally fine!

Strategy

Shell
shell.stud.informatik.uni-goettingen.de - usable by every student
login.informatik.uni-goettingen.de
usable only by staff members with Gwdg-Account


The login server login.informatik.uni-goettingen.de is meant to be used as a gateway from the outside world to the pool - basically to any computer c001 to c048.

This gateway approach is necessary as the pool computers have local, non-routeable IP-addresses like 172.27.x.y.

For accomplishing access to a pool machine you need to "hop" forward one time. On login you'll see a list of currently running computers. E.g.:

System load of less used clients:
c011          up      16:01,     0 users,  load 0.00, 0.01, 0.05
c018          up      15:46,     0 users,  load 0.00, 0.01, 0.05

Simply jump to any of them. "ssh c011" would work in this example.

Hint: If you know the target machine already you might combine these two separate into a single one --> Remote Access/Single Command

Usually the computers in the pool shutdown itself when nobody is logged in. To supply some computers to the above user several pool computers are running continuously to be reachable for this specific use case. This is: c031..c036 which can be found in the first row in room -1.101. These computers are usable locally also without limitation. If they are in use in the very moment when you login remotely they may not be listed as available because of this very fact.

Please note that these clients reboot automatically early in the morning to clean up things - but only if nobody is logged in...


Problems with shared resources

System resources are limited, those login machines are a shared source in more intense way than those pool computers are.

It is considered unfriendly behavior to stress a shared resource in such a manner that other users can not work anymore.

One usual trigger element for this kind or problems is Java.

  • Sometimes it crashes and does not clean up the allocated memory nor CPU resources. Just a very few Java processes hanging in the background can render login.stud unusable - it has to get restarted with a hard reset. (Of course other languages allow generating the same problem, but we see Java most of the time...)
  • when you use Eclipse you might start background processes. Make sure to stop all of them...

Killing a problematic process

If you have the suspicion that you have produced such bad background processes do the following:

First get a terminal with top running

  • inside the working Desktop Environment: use a normal GUI-Terminal window to start top. How to do this depends on the Desktop Environment used. Usually there is a way to enter a command. Simply run top

Alternatively go to a "classic" physical console. This does also work very often if the GUI is not usable for some reason.

  • log off (if possible)
  • go to a normal console - press CTRL-ALT-F2 (or F1/F3/F4/F5/F6)
  • login
  • run top

In that Terminal:

  • use top to examine the running processes. For example look for "java" in the "command" column
  • note that the first column shows the process number
  • the single letter "k" (for "kill") will ask you for a process number to be killed. The second prompt will ask for the specific signal to send. The default offered is "15/sigterm", try this first (by simple pressing Enter. If this is not sufficient do the same again and enter "9" which stands for "sigkill".

Help for top:

  • press question mark ? while running top
  • read the man page (man top) for detailed description
  • If top top fails: kill everything

Only if you are sure that you are the only user on this physical machine: simple turn it off. This is acceptable because the Operating System is not stored locally but the machine performs remote boot. No files on disk can be damaged by a forced power cycle.

Problems with X forwarding

tbw

See also

Links