Server Clustering?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
Good afternoon all. I am not sure this is possible but thought I would ask.
I have 2 identical vhosts running Ubuntu 16. Both of those hosts are image download servers. I have roughly 20million images that are being downloaded starting from 1998 to the current year.
My question is this:
Is it possible to request an image file, and have it served from the appropriate server. I don't want both servers downloading the same images. Lets say server 1 is downloading from 2009 to current year, server 2 has 1998 to 2008.
I am already using a proxy server to route requests to the 2 servers, but they are just being routed to images1.domain.com and images2.domain.com.
It would be nice if I could direct my website image requests to images.domain.com and the server containing the actual file respond to the request.
Hopefully I didn't completely botch the asking of this question.
server apache2 webserver
add a comment |Â
up vote
0
down vote
favorite
Good afternoon all. I am not sure this is possible but thought I would ask.
I have 2 identical vhosts running Ubuntu 16. Both of those hosts are image download servers. I have roughly 20million images that are being downloaded starting from 1998 to the current year.
My question is this:
Is it possible to request an image file, and have it served from the appropriate server. I don't want both servers downloading the same images. Lets say server 1 is downloading from 2009 to current year, server 2 has 1998 to 2008.
I am already using a proxy server to route requests to the 2 servers, but they are just being routed to images1.domain.com and images2.domain.com.
It would be nice if I could direct my website image requests to images.domain.com and the server containing the actual file respond to the request.
Hopefully I didn't completely botch the asking of this question.
server apache2 webserver
Do the download paths have some way to identify the year? I mean, if you have/1991/foo/bar/img1.png
and/2006/nofoo/nobar/img.png
, you could have the proxy server send requests for the first one way and the second the other way. Then one server could keep images from 1998-2008 and the other from 2009-now.
â muru
Feb 1 at 1:36
There is no year data in the image name. They are named by a unique id asdociated with a property listing
â Terry Carter
Feb 1 at 2:18
Then split based on characters in the ID or something. Say id begins with a-o, one server, and p-9, other server.
â muru
Feb 1 at 2:34
In short: no, you cannot do what you suggest. The common way to solve this would either be to have one backend server, and two caching front ends, or simply round robin dns between the two servers, and both having all the content, possibly shared via NFS from a common storage server. Alternatively, in the code that hands out the link, code it such that it gets directed appropriately.
â vidarlo
Feb 18 at 12:02
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Good afternoon all. I am not sure this is possible but thought I would ask.
I have 2 identical vhosts running Ubuntu 16. Both of those hosts are image download servers. I have roughly 20million images that are being downloaded starting from 1998 to the current year.
My question is this:
Is it possible to request an image file, and have it served from the appropriate server. I don't want both servers downloading the same images. Lets say server 1 is downloading from 2009 to current year, server 2 has 1998 to 2008.
I am already using a proxy server to route requests to the 2 servers, but they are just being routed to images1.domain.com and images2.domain.com.
It would be nice if I could direct my website image requests to images.domain.com and the server containing the actual file respond to the request.
Hopefully I didn't completely botch the asking of this question.
server apache2 webserver
Good afternoon all. I am not sure this is possible but thought I would ask.
I have 2 identical vhosts running Ubuntu 16. Both of those hosts are image download servers. I have roughly 20million images that are being downloaded starting from 1998 to the current year.
My question is this:
Is it possible to request an image file, and have it served from the appropriate server. I don't want both servers downloading the same images. Lets say server 1 is downloading from 2009 to current year, server 2 has 1998 to 2008.
I am already using a proxy server to route requests to the 2 servers, but they are just being routed to images1.domain.com and images2.domain.com.
It would be nice if I could direct my website image requests to images.domain.com and the server containing the actual file respond to the request.
Hopefully I didn't completely botch the asking of this question.
server apache2 webserver
server apache2 webserver
asked Feb 1 at 0:58
Terry Carter
1012
1012
Do the download paths have some way to identify the year? I mean, if you have/1991/foo/bar/img1.png
and/2006/nofoo/nobar/img.png
, you could have the proxy server send requests for the first one way and the second the other way. Then one server could keep images from 1998-2008 and the other from 2009-now.
â muru
Feb 1 at 1:36
There is no year data in the image name. They are named by a unique id asdociated with a property listing
â Terry Carter
Feb 1 at 2:18
Then split based on characters in the ID or something. Say id begins with a-o, one server, and p-9, other server.
â muru
Feb 1 at 2:34
In short: no, you cannot do what you suggest. The common way to solve this would either be to have one backend server, and two caching front ends, or simply round robin dns between the two servers, and both having all the content, possibly shared via NFS from a common storage server. Alternatively, in the code that hands out the link, code it such that it gets directed appropriately.
â vidarlo
Feb 18 at 12:02
add a comment |Â
Do the download paths have some way to identify the year? I mean, if you have/1991/foo/bar/img1.png
and/2006/nofoo/nobar/img.png
, you could have the proxy server send requests for the first one way and the second the other way. Then one server could keep images from 1998-2008 and the other from 2009-now.
â muru
Feb 1 at 1:36
There is no year data in the image name. They are named by a unique id asdociated with a property listing
â Terry Carter
Feb 1 at 2:18
Then split based on characters in the ID or something. Say id begins with a-o, one server, and p-9, other server.
â muru
Feb 1 at 2:34
In short: no, you cannot do what you suggest. The common way to solve this would either be to have one backend server, and two caching front ends, or simply round robin dns between the two servers, and both having all the content, possibly shared via NFS from a common storage server. Alternatively, in the code that hands out the link, code it such that it gets directed appropriately.
â vidarlo
Feb 18 at 12:02
Do the download paths have some way to identify the year? I mean, if you have
/1991/foo/bar/img1.png
and /2006/nofoo/nobar/img.png
, you could have the proxy server send requests for the first one way and the second the other way. Then one server could keep images from 1998-2008 and the other from 2009-now.â muru
Feb 1 at 1:36
Do the download paths have some way to identify the year? I mean, if you have
/1991/foo/bar/img1.png
and /2006/nofoo/nobar/img.png
, you could have the proxy server send requests for the first one way and the second the other way. Then one server could keep images from 1998-2008 and the other from 2009-now.â muru
Feb 1 at 1:36
There is no year data in the image name. They are named by a unique id asdociated with a property listing
â Terry Carter
Feb 1 at 2:18
There is no year data in the image name. They are named by a unique id asdociated with a property listing
â Terry Carter
Feb 1 at 2:18
Then split based on characters in the ID or something. Say id begins with a-o, one server, and p-9, other server.
â muru
Feb 1 at 2:34
Then split based on characters in the ID or something. Say id begins with a-o, one server, and p-9, other server.
â muru
Feb 1 at 2:34
In short: no, you cannot do what you suggest. The common way to solve this would either be to have one backend server, and two caching front ends, or simply round robin dns between the two servers, and both having all the content, possibly shared via NFS from a common storage server. Alternatively, in the code that hands out the link, code it such that it gets directed appropriately.
â vidarlo
Feb 18 at 12:02
In short: no, you cannot do what you suggest. The common way to solve this would either be to have one backend server, and two caching front ends, or simply round robin dns between the two servers, and both having all the content, possibly shared via NFS from a common storage server. Alternatively, in the code that hands out the link, code it such that it gets directed appropriately.
â vidarlo
Feb 18 at 12:02
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1001910%2fserver-clustering%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Do the download paths have some way to identify the year? I mean, if you have
/1991/foo/bar/img1.png
and/2006/nofoo/nobar/img.png
, you could have the proxy server send requests for the first one way and the second the other way. Then one server could keep images from 1998-2008 and the other from 2009-now.â muru
Feb 1 at 1:36
There is no year data in the image name. They are named by a unique id asdociated with a property listing
â Terry Carter
Feb 1 at 2:18
Then split based on characters in the ID or something. Say id begins with a-o, one server, and p-9, other server.
â muru
Feb 1 at 2:34
In short: no, you cannot do what you suggest. The common way to solve this would either be to have one backend server, and two caching front ends, or simply round robin dns between the two servers, and both having all the content, possibly shared via NFS from a common storage server. Alternatively, in the code that hands out the link, code it such that it gets directed appropriately.
â vidarlo
Feb 18 at 12:02