You are an unregistered user, you can register here
Navigation

Information

Site

Donations
If you wish to make a donation you can by clicking the image below.


 
Go Back   The Unreal Admins Page > Forums > Unreal Admins > Unreal Tournament > UT Server - Linux Specific

Reply
Thread Tools Display Modes
  #1  
Unread 11th October, 2012, 11:38 PM
nogginBasher nogginBasher is offline
Dominating
 
Join Date: Jun 2005
Location: Bristol UK
Posts: 125
Default UT_Magic_Redirect (multiple redirect merger) for node.js

I didn't really test this yet. Hope it works ok.

https://github.com/joeytwiddle/ut_magic_redirect

A UT redirect server which can serve files sourced from multiple remote redirects.

It's a sort of proxying merging web-server. You give it a list of redirect URLs, and when a file is requested, it tries each redirect until it finds the file. Then it pipes it to any clients that are asking for it.

The current version requires no disk space, as it does not have a disk cache, but obviously it should be placed on a machine with fast network.

(It's a little unsociable at the moment, hitting 404s on the early redirects in the list. However with some improvements, it could actually act as a load-balancer across the redirects.)
__________________
nogginBasher's UT mods I telefragged STRYCH9 once
Reply With Quote
  #2  
Unread 12th October, 2012, 01:37 PM
Hermskii's Avatar
Hermskii Hermskii is offline
Godlike
 
Join Date: Sep 2002
Location: USA.gif
Posts: 384
Default

I've seen several attempts at this. I'll watch this one as well and hope for the best as always. if I recall we always get real close to a solution and then at the very end it all falls in on itself.
__________________
~Peace~

Hermskii

Last edited by Hermskii : 13th October, 2012 at 12:27 PM.
Reply With Quote
  #3  
Unread 13th October, 2012, 04:44 AM
Dr.Flay's Avatar
Dr.Flay Dr.Flay is offline
Forum Newcomer
 
Join Date: Oct 2011
Posts: 14
Default

All it takes is 1 new brain to hit the magic button.
A working prototype is as good a start as we could hope for, so fingers crossed.

I wish you all the luck and fluke in the world (I'll try an' catch a lucky Cornish Pisky, an' pop 'en in tha post. Ansome).
Reply With Quote
  #4  
Unread 13th October, 2012, 06:05 AM
2399Skillz 2399Skillz is offline
Super Moderator
 
Join Date: Jan 2004
Location: North Carolina
Posts: 2,245
Default

Aside from the load balancing part, there is already a multi redirect script that runs on the web server. It's programmed in php..

Read the thread/topic here. It's been done.
http://www.unrealadmin.org/forums/sh...light=redirect
__________________

UT-FILES.COM
Get your files
Reply With Quote
  #5  
Unread 13th October, 2012, 10:34 AM
SoNY_scarface SoNY_scarface is offline
Holy Shit!!
 
Join Date: Mar 2007
Posts: 1,726
Default

Skillz. Which webserver are you using?
__________________




Reply With Quote
  #6  
Unread 13th October, 2012, 06:16 PM
2399Skillz 2399Skillz is offline
Super Moderator
 
Join Date: Jan 2004
Location: North Carolina
Posts: 2,245
Default

Apache/2.2.23
__________________

UT-FILES.COM
Get your files
Reply With Quote
  #7  
Unread 14th October, 2012, 10:29 PM
SoNY_scarface SoNY_scarface is offline
Holy Shit!!
 
Join Date: Mar 2007
Posts: 1,726
Default

nvm, I just re-read your post. I thought you meant you required load balancing hence the question.

My bad!

PD, why not switch to NGINX or LIGHTTPD?
__________________




Reply With Quote
  #8  
Unread 14th October, 2012, 11:50 PM
Azura's Avatar
Azura Azura is offline
Holy Shit!!
 
Join Date: Apr 2003
Posts: 4,029
Default

nogginBasher, why node.js and how about caching through ajax+php ? Also your hotmail seems dead.
__________________
How to feck up a perfectly good game:
UT (1999) = UnbelievableGameSoCoolIMustHelpBringNewPlayers Tournament
UT (2008) = Unreal ThrustMyPrivatePartsInYourFaceBish

And that's probably why UTIII was a relative flop. New game, same sh*thead players ^^.
Reply With Quote
  #9  
Unread 20th October, 2012, 11:15 AM
nogginBasher nogginBasher is offline
Dominating
 
Join Date: Jun 2005
Location: Bristol UK
Posts: 125
Unhappy

Quote:
Originally Posted by Azura View Post
nogginBasher, why node.js and how about caching through ajax+php ? Also your hotmail seems dead.
I have added an option to enable a local disk-cache, although there is no code yet to clean up the files. (You can just delete them and restart the server.)

Node because ... I wanted to write in Coffeescript that day! I have never done any PHP but the PHP solution Skillz posted takes pretty much the same approach, so admins can just use whichever they prefer. (It also has the advantage that it can be added on an existing web-server, and serve local and FTP files too.)

Not sure what you mean with Ajax ... that usually requires Javascript running on the client.

Unfortunately I fear issues with Version Mismatch cannot be solved by a redirect, since it has no way of knowing which version the client wants.

Hotmail yuck ... thanks I re-registered the same account name (then got an error trying to read my inbox in Firefox). Very kind of Hotmail to open that username to the public again!
__________________
nogginBasher's UT mods I telefragged STRYCH9 once
Reply With Quote
  #10  
Unread 28th October, 2012, 12:41 AM
Azura's Avatar
Azura Azura is offline
Holy Shit!!
 
Join Date: Apr 2003
Posts: 4,029
Default

Quote:
Not sure what you mean with Ajax ... that usually requires Javascript running on the client.
True. Web support on a server is very basic. So ajax calls are no go and I now get a gist of what node is about.

Quote:
Unfortunately I fear issues with Version Mismatch cannot be solved by a redirect, since it has no way of knowing which version the client wants.
There is no information passed about the required version ? So the client just picks UZs by name ? Would there be some way to tell the client to rename or "zap" a file ?

Quote:
Hotmail yuck ... thanks I re-registered the same account name (then got an error trying to read my inbox in Firefox). Very kind of Hotmail to open that username to the public again!
Just mentioned it as the address was indicated either on your profile or in readme.
__________________
How to feck up a perfectly good game:
UT (1999) = UnbelievableGameSoCoolIMustHelpBringNewPlayers Tournament
UT (2008) = Unreal ThrustMyPrivatePartsInYourFaceBish

And that's probably why UTIII was a relative flop. New game, same sh*thead players ^^.
Reply With Quote
  #11  
Unread 29th October, 2012, 03:15 AM
nogginBasher nogginBasher is offline
Dominating
 
Join Date: Jun 2005
Location: Bristol UK
Posts: 125
Default

Quote:
Originally Posted by Azura View Post
There is no information passed about the required version ?
Afraid not:

Code:
GET /BT-ConcreteFactoryCB.unr.uz HTTP/1.1
Host: 7.3.167.22
User-Agent: Unreal
Connection: close
Since the UT server only gives the client a filename, it must be the admin's responsibility to ensure that file is available on the redirect!

I am guessing the Unreal client doesn't handle 303 redirects either, or someone would have written a much simpler redirect years ago. (I haven't actually checked that though.)

If I understand correctly, UT can handle multiple files of the same name just fine in its Cache. The Version Mismatch problem only arises when players use a cache cleaner to rename their cache files, and put them in their UT folders.

I say we blame the users.

Quote:
Originally Posted by Azura View Post
So the client just picks UZs by name ? Would there be some way to tell the client to rename or "zap" a file ?
I fear there is no solution to this, without an update/install on the client. Even if you made a clever ServerPackage that could delete or rename files on the client, it's not going to run because the client can't get into the server!

As an admin, when I find a version mismatch, I decide which version is the "official" (most popular) one, and rename the other file (which may require refactoring or discarding its dependent maps). Whilst it might be hard for authors to know about a name clash when choosing their package name, it's something admins can try to mitigate later.

I like that other redirect script by the way. Nice approach with the three source types.
__________________
nogginBasher's UT mods I telefragged STRYCH9 once
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:01 PM.


 

All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.