From unknown Thu Mar 28 23:20:10 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#684: select_session offers offline servers to X2Go Client Reply-To: Mike Gabriel , 684@bugs.x2go.org Resent-From: Mike Gabriel Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Tue, 02 Dec 2014 12:35:01 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: report 684 X-X2Go-PR-Package: python-x2gobroker X-X2Go-PR-Keywords: Received: via spool by submit@bugs.x2go.org id=B.141752362530094 (code B); Tue, 02 Dec 2014 12:35:01 +0000 Received: (at submit) by bugs.x2go.org; 2 Dec 2014 12:33:45 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id A97395E0DB for ; Tue, 2 Dec 2014 13:33:43 +0100 (CET) Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98]) by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 05A5B1BC9 for ; Tue, 2 Dec 2014 13:33:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 3719B3BABC for ; Tue, 2 Dec 2014 13:33:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de Received: from grimnir.das-netzwerkteam.de ([127.0.0.1]) by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fDY9DeaYb9XC for ; Tue, 2 Dec 2014 13:33:42 +0100 (CET) Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id 034523B9E7 for ; Tue, 2 Dec 2014 13:33:42 +0100 (CET) Received: from p5B3B8969.dip0.t-ipconnect.de (p5B3B8969.dip0.t-ipconnect.de [91.59.137.105]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP; Tue, 02 Dec 2014 12:33:41 +0000 Date: Tue, 02 Dec 2014 12:33:41 +0000 Message-ID: <20141202123341.Horde.QeHOtFuPS5eIFQCJsNHniA3@mail.das-netzwerkteam.de> From: Mike Gabriel To: submit@bugs.x2go.org User-Agent: Internet Messaging Program (IMP) H5 (6.2.2) Accept-Language: en,de Organization: DAS-NETZWERKTEAM X-Originating-IP: 91.59.137.105 X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 Iceweasel/32.0 Content-Type: multipart/signed; boundary="=_E_KIV7NqxgW2UJMy_xHbHA8"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 This message is in MIME format and has been PGP signed. --=_E_KIV7NqxgW2UJMy_xHbHA8 Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Package: python-x2gobroker Severity: important Version: 0.0.3.0-preview The X2Go Session Broker should be able to detect offline X2Go Servers. It should not offer session via the select_session() method to X2Go=20=20 Client,=20if a server is offline. Mike --=20 DAS-NETZWERKTEAM mike=20gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148 GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.x= fb --=_E_KIV7NqxgW2UJMy_xHbHA8 Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJUfbGlAAoJEJr0azAldxsx81wP/RUxJgjdHDlP7mKvS6BHfNWG 4T46jZnPHS1ZoSh93ffXDPFGpP4bHUeG4xWP4eUNw+CsrXlc5JIjgV2QGliHsOwS dYLAIkLo3iehgLb3lPZZygUsAEHjGkhiE334AsnMfsBb/dNulBCZrog/DOA2y4+9 LRXiJuUe7uTJpKHeDwsP2T+sZlBFp+2XvMVfoZleXLkwmEU/Cg21PNPq51O9jwEt 6SdNqgvP6zj7oBSPW1RWhcKzaJnYUuzTF9s0iP9g+gqMpRK+xHhv1hzgQjR5JMps YRGKmCo5bZdwelypgkHmQa9+Dttw9NTyt89GIZsKnNYNQs5AIvCOnCJQzLQzKIy5 nv/358b0uOtoyb+/ohvg0BHYBK4qjEBxRDmqRPHoVGrglTlNCDnHeHJH67Lg3YAB wUfoW5SnBPDYl0Mpab4TKci2PkNp0MUirA9vg8kDP1yX+Yw6PXSCJmZjZg74BhpP +cNP21mig9gvVvg+EoolCOv/OBJFo0f53dis1zSVMN4dhyqPjyL5TXTfSYgcOx9W tmSAWhSDvRtdRsP3/wxmQbXTzzlT9Usft+YNOIyA1O7B5yquzSsJ6/oB50E46bQ3 lWZJC5r+QcEzKKRqo5kOPL2Zd9j/NB+rqmv6CcoMJTYktlVLBh8cHLEXpUHwRh9X meNGkyy+OiCalK2CRqxe =1c7Y -----END PGP SIGNATURE----- --=_E_KIV7NqxgW2UJMy_xHbHA8-- From unknown Thu Mar 28 23:20:10 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#684: select_session offers offline servers to X2Go Client Reply-To: Sergey Savko , 684@bugs.x2go.org Resent-From: Sergey Savko Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Fri, 05 Dec 2014 16:25:01 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 684 X-X2Go-PR-Package: python-x2gobroker X-X2Go-PR-Keywords: Received: via spool by 684-submit@bugs.x2go.org id=B684.141779656217975 (code B ref 684); Fri, 05 Dec 2014 16:25:01 +0000 Received: (at 684) by bugs.x2go.org; 5 Dec 2014 16:22:42 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham version=3.3.2 X-Greylist: delayed 571 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Fri, 05 Dec 2014 17:22:40 CET Received: from m.tophouse.ru (m.tophouse.ru [178.238.31.85]) by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 8E4F25E0DD for <684@bugs.x2go.org>; Fri, 5 Dec 2014 17:22:40 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by m.tophouse.ru (Postfix) with ESMTP id 5B424382A06 for <684@bugs.x2go.org>; Fri, 5 Dec 2014 19:14:53 +0300 (MSK) Received: from m.tophouse.ru ([127.0.0.1]) by localhost (m.tophouse.ru [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id yebOrjHTRL4E for <684@bugs.x2go.org>; Fri, 5 Dec 2014 19:14:52 +0300 (MSK) Received: from localhost (localhost.localdomain [127.0.0.1]) by m.tophouse.ru (Postfix) with ESMTP id 2925F382A10 for <684@bugs.x2go.org>; Fri, 5 Dec 2014 19:14:52 +0300 (MSK) X-Virus-Scanned: amavisd-new at m.tophouse.ru Received: from m.tophouse.ru ([127.0.0.1]) by localhost (m.tophouse.ru [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id D2swjnMInWWO for <684@bugs.x2go.org>; Fri, 5 Dec 2014 19:14:52 +0300 (MSK) Received: from m.tophouse.ru (m.tophouse.ru [178.238.31.85]) by m.tophouse.ru (Postfix) with ESMTP id E8C29382A06 for <684@bugs.x2go.org>; Fri, 5 Dec 2014 19:14:51 +0300 (MSK) Date: Fri, 5 Dec 2014 20:14:51 +0400 (MSK) From: Sergey Savko To: 684@bugs.x2go.org Message-ID: <1123477056.96337.1417796091693.JavaMail.zimbra@tophouse.ru> In-Reply-To: <143861477.96320.1417796055431.JavaMail.zimbra@tophouse.ru> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_96335_1079755688.1417796091689" X-Mailer: Zimbra 8.0.8_GA_6184 (ZimbraWebClient - GC38 (Linux)/8.0.8_GA_6184) Thread-Topic: select_session offers offline servers to X2Go Client Thread-Index: BtoVfW8MjcRXwHUADFIqbsVU/TaIjA== ------=_Part_96335_1079755688.1417796091689 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 VGhpcyBwYXRjaCB3b3JrIGFmdGVyIHBhdGNoIGZyb20gaHR0cDovL2J1Z3MueDJnby5vcmcvY2dp LWJpbi9idWdyZXBvcnQuY2dpP2J1Zz02ODYKCi0tIArQoSDRg9Cy0LDQttC10L3QuNC10LwsCtCh 0LXRgNCz0LXQuSDQodCw0LLQutC+LArQvdCw0YfQsNC70YzQvdC40LogSVQg0L7RgtC00LXQu9Cw LgorNy05MzEtMzYxLTA0LTAy ------=_Part_96335_1079755688.1417796091689 Content-Type: text/x-patch; name=0002-Gives-a-coefficient-of-1-for-the-server-if-the-serve.patch Content-Disposition: attachment; filename=0002-Gives-a-coefficient-of-1-for-the-server-if-the-serve.patch Content-Transfer-Encoding: base64 RnJvbSA1ZjhhNjM2YWE3MDI5YmFmNWZmNWRmNzc5NTM4ZDIyMDYyYjNlZTc0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTZXJnZXkgU2F2a28gPHNhdmtvQHRvcGhvdXNlLnJ1PgpEYXRl OiBGcmksIDUgRGVjIDIwMTQgMTk6MDk6MzQgKzAzMDAKU3ViamVjdDogW1BBVENIXSBHaXZlcyBh IGNvZWZmaWNpZW50IG9mIDEgZm9yIHRoZSBzZXJ2ZXIsIGlmIHRoZSBzZXJ2ZXIgaXMKIGRvd24u CgotLS0KIHgyZ29icm9rZXIvYWdlbnQucHkgICAgICAgICAgICAgICB8ICA1ICsrKysrCiB4Mmdv YnJva2VyL2Jyb2tlcnMvYmFzZV9icm9rZ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jb250YWN0ZWQsIHRoaXMgZG9lcyBub3QgbG9vayBnb29kLiBXZSB0cmllZCB0aGVz ZSBhZ2VudCBob3N0czoge2FnZW50X2hvc3RzfScuZm9ybWF0KGFnZW50X2hvc3RzPXVuaWNvZGUo c2VydmVyX2xpc3QpKSkKIAogICAgICAgICAgICAgICAgIGxvZ2dlcl9icm9rZXIuZGVidWcoJ2Jh c2VfYnJva2VyLlgyR29Ccm9rZXIuc2VsZWN0X3Nlc3Npb24oKTogbG9hZCBiYWxhbmNlciBhbmFs eXNpczoge3NlcnZlcl9sb2FkfScuZm9ybWF0KHNlcnZlcl9sb2FkPXVuaWNvZGUoYnVzeV9zZXJ2 ZXJfbGlzdCkpKQogCi0tIAoxLjkuMQoK ------=_Part_96335_1079755688.1417796091689-- From unknown Thu Mar 28 23:20:10 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#684: [X2Go-Dev] Bug#684: select_session offers offline servers to X2Go Client Reply-To: Mike Gabriel , 684@bugs.x2go.org Resent-From: Mike Gabriel Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Sat, 06 Dec 2014 23:00:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 684 X-X2Go-PR-Package: python-x2gobroker X-X2Go-PR-Keywords: Received: via spool by 684-submit@bugs.x2go.org id=B684.14179065695851 (code B ref 684); Sat, 06 Dec 2014 23:00:02 +0000 Received: (at 684) by bugs.x2go.org; 6 Dec 2014 22:56:09 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 7AA1E5E0E0 for <684@bugs.x2go.org>; Sat, 6 Dec 2014 23:56:07 +0100 (CET) Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98]) by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 06E87E26; Sat, 6 Dec 2014 23:56:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 707873BDE2; Sat, 6 Dec 2014 23:56:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de Received: from grimnir.das-netzwerkteam.de ([127.0.0.1]) by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yB4i5TlKWPGa; Sat, 6 Dec 2014 23:56:06 +0100 (CET) Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id 93A503BD2D; Sat, 6 Dec 2014 23:56:05 +0100 (CET) Received: from p50815251.dip0.t-ipconnect.de (p50815251.dip0.t-ipconnect.de [80.129.82.81]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP; Sat, 06 Dec 2014 22:56:05 +0000 Date: Sat, 06 Dec 2014 22:56:05 +0000 Message-ID: <20141206225605.Horde.h0QDOmvCPLZG5RzMvTt6XA3@mail.das-netzwerkteam.de> From: Mike Gabriel To: Sergey Savko , 684@bugs.x2go.org References: <143861477.96320.1417796055431.JavaMail.zimbra@tophouse.ru> <1123477056.96337.1417796091693.JavaMail.zimbra@tophouse.ru> In-Reply-To: <1123477056.96337.1417796091693.JavaMail.zimbra@tophouse.ru> User-Agent: Internet Messaging Program (IMP) H5 (6.2.2) Accept-Language: en,de Organization: DAS-NETZWERKTEAM X-Originating-IP: 80.129.82.81 X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 Iceweasel/32.0 Content-Type: multipart/signed; boundary="=_Oy8JzmEkPC0b2OV3XAc9SQ1"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 This message is in MIME format and has been PGP signed. --=_Oy8JzmEkPC0b2OV3XAc9SQ1 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Control: clone -1 -2 -3 Control: reassign -2 x2goclient Control: reassign -3 python-x2go Control: retitle -1 add exclude-hosts parameter to selectsession task Control: retitle -2 request another server from broker provided server is d= own Control: retitle -3 request another server from broker provided server is d= own Control: severity -1 wishlist Control: severity -2 wishlist Control: severity -3 wishlist Control: block -2 by -1 Control: block -3 by -1 Control: tag -1 - patch Hi Sergey, On Fr 05 Dez 2014 17:14:51 CET, Sergey Savko wrote: > This patch work after patch from=20=20 >=20http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=3D686 After thinking this through a little, I come to the conclusion that=20=20 the=20broker cannot decide if a machine is down or not. We have to think very generically. There may be a scenario where the=20=20 broker=20machine may be on an network segment where it cannot ping/reach=20= =20 the=20X2Go Servers. The X2Go Clients can reach the X2Go Broker. The broker provides an=20=20 X2Go=20Server address on the "selectsession" broker task to the X2Go=20=20 Client.=20Then the X2Go Client should test if that X2Go Server address=20= =20 works=20(via a simple ping6/ping command, machines should always be=20=20 pingable!!!).=20If the ping fails, X2Go Client should go back to the=20=20 broker=20and say: hey, that server failed for me, give me another one=20=20 (but=20not the one you already gave me). I fear we need to do four things for this bug to get fixed: 1. extend broker/client communication protocol (second/third/...=20=20 selectsession =20 call with a list of hosts that did not work on previous attempts) 2. extend X2Go Session Broker with an exclude-hosts (or so)=20=20 parameter=20for the selectsession task 3. Adapt X2Go Client: ping X2Go Server, go back to the broker if=20=20 server=20is down and request another server 4. Adapt Python X2Go: dito Regards, Mike --=20 DAS-NETZWERKTEAM mike=20gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148 GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.x= fb --=_Oy8JzmEkPC0b2OV3XAc9SQ1 Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJUg4mFAAoJEJr0azAldxsxG/4P/RJwSiJZdCylF4cCn8H4q00G A7lAI45oXOu0WUiScExm3CowcJrGYGocerJplZW6UpSIljwfvgF4xiFaz1zLhQ2n hYLQWXF+OSPt2xQyzmdv7BRlF5X3WD5Y/6hNMfri+SWtnO/9W0QxSyOOga07jPDx th/dlCS4T2c+QfOMtqFbJxHNJTxHWxT6zJlnWK2jNGkQVHDYaRP2qlPdFaQFtSla ITdTi1SJk03js//+gWCTXJTmZi1bwW3YfdDVEA2bYIcanyJX8/TYsSzGqykPYVcg v5y3BqlV51JrZAT6DvTU7pEade7QOwrT2lEUnbPsUzZqGb8Lcmu1oPYtcdZbn3Rd QaRjBiZh2AgxiROCYcOLBIHr1OjU5mb1Nrr9pvMQ+JM5A+/w+bVJ0oWG6ZoGbGd6 KSl8VMNst+M6mXu/VOhiOHOJu9WUpG9XoROG6bNhqQHzMLMBpFsza6joe+G7NrlJ hPU1lE3w7xkyLMkuTazGU1emItGvpI2Q39jAO+eFwYTaknuVP3xVhv+CFAsrwEdb n1WI4HGspiW1Gh9gf8kiLXsvDwX3KlxBRyq9ZuKhIE/xVpo7n2ZsSvJ9++JDI7/G QwLcp39KhNPMKsOws2EC9Nd6psqWYfLCAnWCj22wyP/NY5WRqNXFsqi8WimuAGwm 2clI4zeiu6eO4b4cwwi2 =6UhK -----END PGP SIGNATURE----- --=_Oy8JzmEkPC0b2OV3XAc9SQ1-- From unknown Thu Mar 28 23:20:10 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#684: [X2Go-Dev] Bug#684: Bug#684: select_session offers offline servers to X2Go Client Reply-To: Stefan Baur , 684@bugs.x2go.org Resent-From: Stefan Baur Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Sat, 06 Dec 2014 23:25:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 684 X-X2Go-PR-Package: python-x2gobroker X-X2Go-PR-Keywords: Received: via spool by 684-submit@bugs.x2go.org id=B684.141790812915443 (code B ref 684); Sat, 06 Dec 2014 23:25:02 +0000 Received: (at 684) by bugs.x2go.org; 6 Dec 2014 23:22:09 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham version=3.3.2 X-Greylist: delayed 303 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Sun, 07 Dec 2014 00:22:07 CET Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 5DCC45E0E0 for <684@bugs.x2go.org>; Sun, 7 Dec 2014 00:22:07 +0100 (CET) Received: from [192.168.0.3] ([188.105.141.225]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0LkknQ-1XP9lz16EG-00aSJZ; Sun, 07 Dec 2014 00:17:03 +0100 Message-ID: <54838E82.60705@baur-itcs.de> Date: Sun, 07 Dec 2014 00:17:22 +0100 From: Stefan Baur User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Mike Gabriel , 684@bugs.x2go.org, Sergey Savko References: <143861477.96320.1417796055431.JavaMail.zimbra@tophouse.ru> <1123477056.96337.1417796091693.JavaMail.zimbra@tophouse.ru> <20141206225605.Horde.h0QDOmvCPLZG5RzMvTt6XA3@mail.das-netzwerkteam.de> In-Reply-To: <20141206225605.Horde.h0QDOmvCPLZG5RzMvTt6XA3@mail.das-netzwerkteam.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:zWxZBFK7NiMx94VuXDo8UYPHDtqbCk1hnETTkRtU6s+MwOGiUNt qiT71Z94+TwCVgZdhbc2TjaxnEfgUP9RNcmH9hjGOlnKl02hiv2hFANol4f0N+zWDffOnLl BFkLP7roGGpg9vFG9TJOi+1QxOWCG7SQ+L3nVZdy+SC9iXSlT3BjzgZhab59R62kBsPv1dh YLHcFsvzpTIlDJUGUJqOQ== X-UI-Out-Filterresults: notjunk:1; -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 06.12.2014 um 23:56 schrieb Mike Gabriel: > Then the X2Go Client should test if that X2Go Server address works > (via a simple ping6/ping command, machines should always be > pingable!!!) Chiming in here: Even if they aren't pingable - Port 22 (or whichever you've set in the config as SSH port to be used) must be accepting connections. You can test that on Linux with nc -z ip.goes.he.re port_goes_here && echo "is reachable" ... and I'm sure there are ways to do that inside the client code, too. Check if you can get a TCP handshake going within a set time frame (1 second? 2 seconds? 5 seconds?), then disconnect and proceed depending on the result. Actually ... simply lowering the timeout value for the currently existing code that handles the connection, when called in broker client mode, might already work. - -Stefan - -- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQEcBAEBAgAGBQJUg46CAAoJEG7d9BjNvlEZAhIIAJA21I9lvk3hY6R3eAiCO2MG YSNlsUy/ShyhwB37UCNyCLOtEJ9j14xS73UNjbTiRkIFRE12kdtS8vyAPAdZJYqi 2+vbiVjg+TZ31rvk7RrkPyEepJ3+0UfRkfFPDm07sTP47DiBx+zYOyie2qVdrw1U GXJtQrylZRlzhVUi7rbAmNSp1HYaQ+B5yRX1ApmvNrZ+1+GZFybyZO2+eDM6ClHI QBmCePp5DPfN5bE9d+GvxWArkWQe5sgNT1USz7r64F5DOgB09M8f6vkuW3ygq4cW 8dDBhPnJv4PKs7IxLNnM+K1OnPopcKs1/EmkD5nbcNCvGSRW93nV4ic6RoZSD7g= =8x/F -----END PGP SIGNATURE----- From unknown Thu Mar 28 23:20:10 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#684: [X2Go-Dev] Bug#684: select_session offers offline servers to X2Go Client Reply-To: Sergey Savko , 684@bugs.x2go.org Resent-From: Sergey Savko Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Sat, 06 Dec 2014 23:45:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 684 X-X2Go-PR-Package: python-x2gobroker X-X2Go-PR-Keywords: Received: via spool by 684-submit@bugs.x2go.org id=B684.141790942832393 (code B ref 684); Sat, 06 Dec 2014 23:45:02 +0000 Received: (at 684) by bugs.x2go.org; 6 Dec 2014 23:43:48 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from m.tophouse.ru (m.tophouse.ru [178.238.31.85]) by ymir.das-netzwerkteam.de (Postfix) with ESMTP id CFDDB5E0E0 for <684@bugs.x2go.org>; Sun, 7 Dec 2014 00:43:46 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by m.tophouse.ru (Postfix) with ESMTP id 00B8A3513A7; Sun, 7 Dec 2014 02:45:31 +0300 (MSK) Received: from m.tophouse.ru ([127.0.0.1]) by localhost (m.tophouse.ru [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id XzQdNDkaNRfs; Sun, 7 Dec 2014 02:45:29 +0300 (MSK) Received: from localhost (localhost.localdomain [127.0.0.1]) by m.tophouse.ru (Postfix) with ESMTP id A563B382FC7; Sun, 7 Dec 2014 02:45:29 +0300 (MSK) X-Virus-Scanned: amavisd-new at m.tophouse.ru Received: from m.tophouse.ru ([127.0.0.1]) by localhost (m.tophouse.ru [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tMB6Gkyefqlv; Sun, 7 Dec 2014 02:45:29 +0300 (MSK) Received: from m.tophouse.ru (m.tophouse.ru [178.238.31.85]) by m.tophouse.ru (Postfix) with ESMTP id 1C323382FC4; Sun, 7 Dec 2014 02:45:29 +0300 (MSK) Date: Sun, 7 Dec 2014 03:45:28 +0400 (MSK) From: Sergey Savko To: Mike Gabriel , 684@bugs.x2go.org Message-ID: <92856184.99387.1417909528212.JavaMail.zimbra@tophouse.ru> In-Reply-To: <20141206225605.Horde.h0QDOmvCPLZG5RzMvTt6XA3@mail.das-netzwerkteam.de> References: <143861477.96320.1417796055431.JavaMail.zimbra@tophouse.ru> <1123477056.96337.1417796091693.JavaMail.zimbra@tophouse.ru> <20141206225605.Horde.h0QDOmvCPLZG5RzMvTt6XA3@mail.das-netzwerkteam.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 8.0.8_GA_6184 (ZimbraWebClient - GC39 (Win)/8.0.8_GA_6184) Thread-Topic: Bug#684: select_session offers offline servers to X2Go Client Thread-Index: 4DVWkN1bMfbL8l2SHX9V5wQpehY9mA== If the server will give the address to which it can not connect, there will= be no load balancing works.=20 Since the server is connected to receive the coefficient of loading. ----- =D0=98=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=BE=D0=B5 =D1=81=D0=BE=D0=BE= =D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5 ----- =D0=9E=D1=82: "Mike Gabriel" =D0=9A=D0=BE=D0=BC=D1=83: "Sergey Savko" , 684@bugs.x2go= .org =D0=9E=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BD=D1=8B=D0=B5: = =D0=92=D0=BE=D1=81=D0=BA=D1=80=D0=B5=D1=81=D0=B5=D0=BD=D1=8C=D0=B5, 7 =D0= =94=D0=B5=D0=BA=D0=B0=D0=B1=D1=80=D1=8C 2014 =D0=B3 1:56:05 =D0=A2=D0=B5=D0=BC=D0=B0: Re: [X2Go-Dev] Bug#684: select_session offers off= line servers to X2Go Client Control: clone -1 -2 -3 Control: reassign -2 x2goclient Control: reassign -3 python-x2go Control: retitle -1 add exclude-hosts parameter to selectsession task Control: retitle -2 request another server from broker provided server is d= own Control: retitle -3 request another server from broker provided server is d= own Control: severity -1 wishlist Control: severity -2 wishlist Control: severity -3 wishlist Control: block -2 by -1 Control: block -3 by -1 Control: tag -1 - patch Hi Sergey, On Fr 05 Dez 2014 17:14:51 CET, Sergey Savko wrote: > This patch work after patch from =20 > http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=3D686 After thinking this through a little, I come to the conclusion that =20 the broker cannot decide if a machine is down or not. We have to think very generically. There may be a scenario where the =20 broker machine may be on an network segment where it cannot ping/reach =20 the X2Go Servers. The X2Go Clients can reach the X2Go Broker. The broker provides an =20 X2Go Server address on the "selectsession" broker task to the X2Go =20 Client. Then the X2Go Client should test if that X2Go Server address =20 works (via a simple ping6/ping command, machines should always be =20 pingable!!!). If the ping fails, X2Go Client should go back to the =20 broker and say: hey, that server failed for me, give me another one =20 (but not the one you already gave me). I fear we need to do four things for this bug to get fixed: 1. extend broker/client communication protocol (second/third/... =20 selectsession call with a list of hosts that did not work on previous attempts) 2. extend X2Go Session Broker with an exclude-hosts (or so) =20 parameter for the selectsession task 3. Adapt X2Go Client: ping X2Go Server, go back to the broker if =20 server is down and request another server 4. Adapt Python X2Go: dito Regards, Mike --=20 DAS-NETZWERKTEAM mike gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148 GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.x= fb From unknown Thu Mar 28 23:20:10 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#684: [X2Go-Dev] Bug#684: select_session offers offline servers to X2Go Client Reply-To: Mike Gabriel , 684@bugs.x2go.org Resent-From: Mike Gabriel Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Mon, 08 Dec 2014 07:25:01 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 684 X-X2Go-PR-Package: python-x2gobroker X-X2Go-PR-Keywords: Received: via spool by 684-submit@bugs.x2go.org id=B684.141802342220206 (code B ref 684); Mon, 08 Dec 2014 07:25:01 +0000 Received: (at 684) by bugs.x2go.org; 8 Dec 2014 07:23:42 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 549D75E0E0; Mon, 8 Dec 2014 08:23:40 +0100 (CET) Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98]) by freya.das-netzwerkteam.de (Postfix) with ESMTPS id C6C7A12346; Mon, 8 Dec 2014 08:23:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id B9A2E3B9E7; Mon, 8 Dec 2014 08:23:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de Received: from grimnir.das-netzwerkteam.de ([127.0.0.1]) by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tj+m3MWVSM-B; Mon, 8 Dec 2014 08:23:39 +0100 (CET) Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1]) by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id 74C013B9B3; Mon, 8 Dec 2014 08:23:39 +0100 (CET) Received: from 212.51.14.250 ([212.51.14.250]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP; Mon, 08 Dec 2014 07:23:39 +0000 Date: Mon, 08 Dec 2014 07:23:39 +0000 Message-ID: <20141208072339.Horde.F4FcRmDw_W389jc-Roz0BA6@mail.das-netzwerkteam.de> From: Mike Gabriel To: Sergey Savko Cc: 684@bugs.x2go.org, control@bugs.x2go.org References: <143861477.96320.1417796055431.JavaMail.zimbra@tophouse.ru> <1123477056.96337.1417796091693.JavaMail.zimbra@tophouse.ru> <20141206225605.Horde.h0QDOmvCPLZG5RzMvTt6XA3@mail.das-netzwerkteam.de> <92856184.99387.1417909528212.JavaMail.zimbra@tophouse.ru> In-Reply-To: <92856184.99387.1417909528212.JavaMail.zimbra@tophouse.ru> User-Agent: Internet Messaging Program (IMP) H5 (6.2.2) Accept-Language: en,de Organization: DAS-NETZWERKTEAM X-Originating-IP: 212.51.14.250 X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 Iceweasel/32.0 Content-Type: multipart/signed; boundary="=_YsCpEESveub8klECSPvRow5"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 This message is in MIME format and has been PGP signed. --=_YsCpEESveub8klECSPvRow5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable clone #684 -1 retitle -1 select_session offers offline servers to X2Go Client thanks Hi Sergey, On So 07 Dez 2014 00:45:28 CET, Sergey Savko wrote: > If the server will give the address to which it can not connect,=20=20 >=20there will be no load balancing works. > Since the server is connected to receive the coefficient of loading. Actually, after a third or fourth though: in cases where we use SSH to=20= =20 connected=20from broker server to broker agent, there we can evaluate=20=20 the=20online status of the X2Go Server. So, in those cases we should=20=20 filter=20out, if a server is down or not and exclude that server from=20=20 the=20list of possible X2Go Servers. Plus, I still think, that X2Go Client should request another machine,=20=20 if=20the provided server was offline and more than one server is=20=20 configured=20in the broker's session profile. So, cloning this bug again... #684: for tracking the new feature of re-requesting a server address new bug: filter out offline servers on the broker side already Greets, Mike --=20 DAS-NETZWERKTEAM mike=20gabriel, herweg 7, 24357 fleckeby fon: +49 (1520) 1976 148 GnuPG Key ID 0x25771B31 mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.x= fb --=_YsCpEESveub8klECSPvRow5 Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJUhVH7AAoJEJr0azAldxsxwqYQAIB2WQWi57FC3wWjQ8H6EQfy bh06bml94A/zAJrXYr5n90pIVT2WjsWC0bIr5oHUrVyJ0EVgoNn/61dTLePFCPOU ICC7EfnT+NV1+9DOU5Y56BhCmFm1RRbZ2akTtvZMbMTLQG5TllkbgBW84lM8D4wx 1Lborxj8MKDc67iHkC4d3+cVNJfkW+55Pz0svrZS/Qap4cdaZJ96Mf/SyrxXn+tE oAZH/4vhdAAjFrM5f8ujsXpQAHn6XaWxBtMb/1jtfMzkZmZAXXQzYzxlH/CPIvQE S6ByArtK3R3gLwiCf+r0HNk1rlfJbxMN9vS2tIL10emMdbAB2UCkg+hULEJDjxNW iMZryrm89ujt8LiW5KTACbTMrrUlL49H/3o2K3VM/o3WkybBlPYJc6hYdzKsp3g0 T0M/eVhQclWTprbE/bD/I2Y0VzMEjycNPku/1EwN1Nm+INTVXNqy28B+ygBIa6WR KIcfRuH8xTrzsXXb+/1TibPZRU8/SjWHiDnxMZNLd97Y5KAn/fPP2Y9Xasv11nxG rKnOaFGIYYDyVNms0jYRuLDZaoBNpBZNE+s4xaSUy07BYwkZEFJZcTgnBLGnftjE xU5Fb8rdn2KmnzIJRWIk2zWLdvtJJkp2VkbeAeVui4CScD7tYVVXYlkwJmyT3G8q NwxOU0J3UHPscDAAeTTN =o1JL -----END PGP SIGNATURE----- --=_YsCpEESveub8klECSPvRow5-- From unknown Thu Mar 28 23:20:10 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#684: [X2Go-Dev] Bug#684: select_session offers offline servers to X2Go Client Reply-To: Sergey Savko , 684@bugs.x2go.org Resent-From: Sergey Savko Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Mon, 08 Dec 2014 13:05:01 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 684 X-X2Go-PR-Package: python-x2gobroker X-X2Go-PR-Keywords: Received: via spool by 684-submit@bugs.x2go.org id=B684.14180438839790 (code B ref 684); Mon, 08 Dec 2014 13:05:01 +0000 Received: (at 684) by bugs.x2go.org; 8 Dec 2014 13:04:43 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=ham version=3.3.2 Received: from m.tophouse.ru (m.tophouse.ru [178.238.31.85]) by ymir.das-netzwerkteam.de (Postfix) with ESMTP id EAF915E0E6 for <684@bugs.x2go.org>; Mon, 8 Dec 2014 14:04:41 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by m.tophouse.ru (Postfix) with ESMTP id 58425358158 for <684@bugs.x2go.org>; Mon, 8 Dec 2014 16:06:26 +0300 (MSK) Received: from m.tophouse.ru ([127.0.0.1]) by localhost (m.tophouse.ru [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id NttYoTUhhZOJ for <684@bugs.x2go.org>; Mon, 8 Dec 2014 16:06:25 +0300 (MSK) Received: from localhost (localhost.localdomain [127.0.0.1]) by m.tophouse.ru (Postfix) with ESMTP id A83B83581BD for <684@bugs.x2go.org>; Mon, 8 Dec 2014 16:06:25 +0300 (MSK) X-Virus-Scanned: amavisd-new at m.tophouse.ru Received: from m.tophouse.ru ([127.0.0.1]) by localhost (m.tophouse.ru [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jDt2G0gZgsYV for <684@bugs.x2go.org>; Mon, 8 Dec 2014 16:06:25 +0300 (MSK) Received: from m.tophouse.ru (m.tophouse.ru [178.238.31.85]) by m.tophouse.ru (Postfix) with ESMTP id 79F74358158 for <684@bugs.x2go.org>; Mon, 8 Dec 2014 16:06:25 +0300 (MSK) Date: Mon, 8 Dec 2014 17:06:25 +0400 (MSK) From: Sergey Savko To: 684@bugs.x2go.org Message-ID: <914829209.13176.1418043985279.JavaMail.zimbra@tophouse.ru> In-Reply-To: <20141208072339.Horde.F4FcRmDw_W389jc-Roz0BA6@mail.das-netzwerkteam.de> References: <143861477.96320.1417796055431.JavaMail.zimbra@tophouse.ru> <1123477056.96337.1417796091693.JavaMail.zimbra@tophouse.ru> <20141206225605.Horde.h0QDOmvCPLZG5RzMvTt6XA3@mail.das-netzwerkteam.de> <92856184.99387.1417909528212.JavaMail.zimbra@tophouse.ru> <20141208072339.Horde.F4FcRmDw_W389jc-Roz0BA6@mail.das-netzwerkteam.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 8.0.8_GA_6184 (ZimbraWebClient - GC38 (Linux)/8.0.8_GA_6184) Thread-Topic: Bug#684: select_session offers offline servers to X2Go Client Thread-Index: gMy91Cicy4xc1WNgRetpXYmLh0W21A== If you make a x2goclient connection to each farm server, then time will be = increased by seconds for such connection.=20 And if the server farm consist of more then 2-3 servers, then connection ti= me will increase strongly. ----- =D0=98=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=BE=D0=B5 =D1=81=D0=BE=D0=BE= =D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5 ----- >Plus, I still think, that X2Go Client should request another machine, =20 >if the provided server was offline and more than one server is =20 >configured in the broker's session profile. From unknown Thu Mar 28 23:20:10 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#684: [X2Go-Dev] Bug#684: Bug#684: select_session offers offline servers to X2Go Client Reply-To: Terje Andersen , 684@bugs.x2go.org Resent-From: Terje Andersen Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Mon, 08 Dec 2014 21:50:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: followup 684 X-X2Go-PR-Package: python-x2gobroker X-X2Go-PR-Keywords: Received: via spool by 684-submit@bugs.x2go.org id=B684.141807532231319 (code B ref 684); Mon, 08 Dec 2014 21:50:02 +0000 Received: (at 684) by bugs.x2go.org; 8 Dec 2014 21:48:42 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ymir.das-netzwerkteam.de X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham version=3.3.2 Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 847865DB48 for <684@bugs.x2go.org>; Mon, 8 Dec 2014 22:48:40 +0100 (CET) Received: by mail-vc0-f172.google.com with SMTP id hq11so2628126vcb.17 for <684@bugs.x2go.org>; Mon, 08 Dec 2014 13:48:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=l/N3hbIVKfBm2ieY7m4Y6YHpsczNyd+oXSjM7Krl59Y=; b=wLpHpS3B3vjNMZ5rhFbr8/9zms7g1gl2ruz5Aqu5I595B9I+U3F3ySIry9rNicTLO4 DsVZI8bYCUlv2QocpOcI17JUYrR+DGz8XdVZszkAJpBFD2WCf2mHKBhhtITVdIPCY7hU xoPfCmQHIsiAEBpR4VwYjyiVloqU9i8uI01uDTPUAUcvoLq5EdhxP/3YdLZQF3CW/bAW 2DjTC4C67zW7ZaDZjsKSHL1uMzEeyrKp5Ne7AzSym5SxMhb2nRf+RCiXobIR6BrLiXr3 VfzxlGmT/rFKqMo4+r+J4E8lDcBGgQxoFITZx9c4FNr7wNtg/7l8HqXUZdhZaM/N5h7N oxNQ== MIME-Version: 1.0 X-Received: by 10.52.65.227 with SMTP id a3mr22509133vdt.32.1418075318852; Mon, 08 Dec 2014 13:48:38 -0800 (PST) Received: by 10.31.190.74 with HTTP; Mon, 8 Dec 2014 13:48:38 -0800 (PST) In-Reply-To: <914829209.13176.1418043985279.JavaMail.zimbra@tophouse.ru> References: <143861477.96320.1417796055431.JavaMail.zimbra@tophouse.ru> <1123477056.96337.1417796091693.JavaMail.zimbra@tophouse.ru> <20141206225605.Horde.h0QDOmvCPLZG5RzMvTt6XA3@mail.das-netzwerkteam.de> <92856184.99387.1417909528212.JavaMail.zimbra@tophouse.ru> <20141208072339.Horde.F4FcRmDw_W389jc-Roz0BA6@mail.das-netzwerkteam.de> <914829209.13176.1418043985279.JavaMail.zimbra@tophouse.ru> Date: Mon, 8 Dec 2014 22:48:38 +0100 Message-ID: From: Terje Andersen To: Sergey Savko , 684@bugs.x2go.org Content-Type: multipart/alternative; boundary=20cf307f337aa521fe0509bb63aa --20cf307f337aa521fe0509bb63aa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Why not introduce a datastore which holds the current state of all the servers in the server farm? Then the broker could query that one for information to choose server from. One could either use a separate database server for this or use something like sqlite (or mysql / postgresql / other) on each server host with some sort of replication (redundancy and avoids the need to contact one specific server - all can reply to the queries) or caching of the central datastore contents. On how to update this information in the datastore there's two ways I'm thinking of right now: 1. Each server in the server farm writes to the datastore it's current status at regular intervals 2. One, or several (backup role if the "master" should fail) server(s) have been given the responsibility to query the servers in the farm for their status at regular intervals Regardless of the chosen implementation from one of those solutions would IMO: * Make the broker-role easier to implement with regard to "advanced" setups * Removes the wait for / time issue at connection, or selection, process - just contact the datastore * Makes it possible to write a simple and central management app/webapp which one could administer the entire server farm * other possibilites Regards, Terje 2014-12-08 14:06 GMT+01:00 Sergey Savko : > If you make a x2goclient connection to each farm server, then time will b= e > increased by seconds for such connection. > And if the server farm consist of more then 2-3 servers, then connection > time will increase strongly. > > ----- =D0=98=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=BE=D0=B5 =D1=81=D0=BE=D0=BE= =D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5 ----- > >Plus, I still think, that X2Go Client should request another machine, > >if the provided server was offline and more than one server is > >configured in the broker's session profile. > _______________________________________________ > x2go-dev mailing list > x2go-dev@lists.x2go.org > http://lists.x2go.org/listinfo/x2go-dev > --20cf307f337aa521fe0509bb63aa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Why not introduce a datastore which holds the current stat= e of all the servers in the server farm? Then the broker could query that o= ne for information to choose server from.
One could either use a separa= te database server for this or use something like sqlite (or mysql / postgr= esql / other) on each server host with some sort of replication (redundancy= and avoids the need to contact one specific server - all can reply to the = queries) or caching of the central datastore contents.

=
On how to update this information in the datastore there's two way= s I'm thinking of right now:
1. Each server in the server far= m writes to the datastore it's current status at regular intervals
2. One, or several (backup role if the "master" should fail= ) server(s) have been given the responsibility to query the servers in the = farm for their status at regular intervals

Regardl= ess of the chosen implementation from one of those solutions would IMO:
* Make the broker-role easier to implement with regard to "adva= nced" setups
* Removes the wait for / time issue at connecti= on, or selection, process - just contact the datastore
* Makes it= possible to write a simple and central management app/webapp which one cou= ld administer the entire server farm
* other possibilites

Regards,
Terje


2014-12-08 14:06 GMT+01= :00 Sergey Savko <savko@tophouse.ru>:
If you make a x2goclient connection to each farm server, then= time will be increased by seconds for such connection.
And if the server farm consist of more then 2-3 servers, then connection ti= me will increase strongly.

----- =D0=98=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=BE=D0=B5 =D1=81=D0=BE=D0=BE= =D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5 -----
>Plus, I still think, that X2Go Client should = request another machine,
>if the provided server was offline and more than one server is
>configured in the broker's session profile.
____________________________= ___________________
x2go-dev mailing list
x2go-dev@lists.x2go.org
http:= //lists.x2go.org/listinfo/x2go-dev

--20cf307f337aa521fe0509bb63aa--