Merge pull request #146 from andrewnyr/feat/crowdflare-rackstar
This commit is contained in:
commit
28036a7be2
6 changed files with 60 additions and 4 deletions
|
|
@ -19,6 +19,7 @@ All notable changes to this project are documented here. The project follows
|
|||
- A saved game with Australian POPs from before this update says once what changed there: transit costs more, fewer carriers sell it, and the Telstraya and Floptus exchange sessions have ended.
|
||||
- On the zoomed-out map, a POP name that would sit on top of another one now hides until you zoom in, so crowded places like south-east Australia stay readable.
|
||||
- More alien waves from a carrier that already rents on the same fiber now grow its contract instead of adding a new customer for every few waves. A big fiber-resale business no longer fills your save with tens of thousands of tiny contracts, which made saves too big for the browser to keep and slowed the game down. Older saves are tidied up when they load, with the same revenue and the same spectrum sold.
|
||||
- Crowdflare now offers Rackstar embedded caches through its Rackstar Partner Program (RPP). Send it at least 10 Gbps to request a free 100G box in any of your POPs, then pay only for power.
|
||||
|
||||
## [1.32.0] — 2026-10-27
|
||||
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@
|
|||
"Search, video and goggles. Mostly goggles.":"Recherche, vidéo et lunettes. Surtout des lunettes.",
|
||||
"Social media. Everyone keeps falling for it.":"Réseau social. Tout le monde finit par s’y vautrer.",
|
||||
"The original CDN. Maybe it is already in your rack.":"Le CDN original. Il est peut-être déjà dans ta baie.",
|
||||
"Shields half the web from crowds of bots.":"Protège la moitié du web des hordes de bots.",
|
||||
"Shields half the web from crowds of bots. The Rackstar Partner Program (RPP) puts a cache in your rack once you send enough traffic.":"Protège la moitié du web des hordes de bots. Le Rackstar Partner Program (RPP) installe un cache dans ton rack dès que tu envoies assez de trafic.",
|
||||
"The cloud. It's just someone else's Ashburn.":"Le cloud. C’est juste l’Ashburn de quelqu’un d’autre.",
|
||||
"Updates. So many updates.":"Des mises à jour. Tellement de mises à jour.",
|
||||
"Short videos, very long traffic graphs.":"Des vidéos courtes, des graphes de trafic très longs.",
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@
|
|||
"Search, video and goggles. Mostly goggles.":"Ricerca, video e occhialini. Soprattutto occhialini.",
|
||||
"Social media. Everyone keeps falling for it.":"Social media. Tutti continuano a cascarci.",
|
||||
"The original CDN. Maybe it is already in your rack.":"La CDN originale. Forse è già nel tuo rack.",
|
||||
"Shields half the web from crowds of bots.":"Protegge mezzo web dalle orde di bot.",
|
||||
"Shields half the web from crowds of bots. The Rackstar Partner Program (RPP) puts a cache in your rack once you send enough traffic.":"Protegge mezzo web dalle orde di bot. Il Rackstar Partner Program (RPP) ti mette una cache nel rack quando gli mandi abbastanza traffico.",
|
||||
"The cloud. It's just someone else's Ashburn.":"Il cloud. È solo l’Ashburn di qualcun altro.",
|
||||
"Updates. So many updates.":"Aggiornamenti. Tantissimi aggiornamenti.",
|
||||
"Short videos, very long traffic graphs.":"Video brevi, grafici del traffico lunghissimi.",
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@
|
|||
"Search, video and goggles. Mostly goggles.":"Busca, vídeo e óculos de natação. Principalmente óculos.",
|
||||
"Social media. Everyone keeps falling for it.":"Rede social. Todo mundo continua caindo nessa.",
|
||||
"The original CDN. Maybe it is already in your rack.":"A CDN original. Talvez já esteja no seu rack.",
|
||||
"Shields half the web from crowds of bots.":"Protege metade da web de multidões de bots.",
|
||||
"Shields half the web from crowds of bots. The Rackstar Partner Program (RPP) puts a cache in your rack once you send enough traffic.":"Protege metade da web de multidões de bots. O Rackstar Partner Program (RPP) coloca um cache no seu rack quando você envia tráfego suficiente.",
|
||||
"The cloud. It's just someone else's Ashburn.":"A nuvem. É só o Ashburn de outra pessoa.",
|
||||
"Updates. So many updates.":"Atualizações. Tantas atualizações.",
|
||||
"Short videos, very long traffic graphs.":"Vídeos curtos, gráficos de tráfego longuíssimos.",
|
||||
|
|
|
|||
|
|
@ -1163,7 +1163,7 @@ const NETS=[
|
|||
{id:'ggl',name:'Goggle',asn:15961,type:'cdn',pol:'selective',minIx:5,minPni:30,share:.13,cache:{name:'Goggle Global Cache',min:15},col:'#3A7BEA',auIx:['syd','mel'],pops:ALLC,ix:'ALL',blurb:tr('Search, video and goggles. Mostly goggles.')},
|
||||
{id:'fbk',name:'Faceplant',asn:32943,type:'cdn',pol:'selective',minIx:5,minPni:25,share:.08,cache:{name:'Faceplant Node Thingy',min:10},col:'#3B5BDB',auIx:['syd','mel'],pops:BIGC,ix:'ALL',blurb:tr('Social media. Everyone keeps falling for it.')},
|
||||
{id:'akm',name:'Akamaybe',asn:20490,type:'cdn',pol:'open',share:.07,cache:{name:'Akamaybe Box',min:6},col:'#0099CC',auIx:['syd','mel','bne','per','adl'],pops:ALLC,ix:'ALL',blurb:tr('The original CDN. Maybe it is already in your rack.')},
|
||||
{id:'cfl',name:'Crowdflare',asn:13353,type:'cdn',pol:'open',share:.05,col:'#F48120',auIx:['syd','mel','bne','per','adl','cbr','hba'],pops:BIGC.concat(['hnl','gum','nou','ppt','dus']),ix:'ALL',blurb:tr('Shields half the web from crowds of bots.')},
|
||||
{id:'cfl',name:'Crowdflare',asn:13353,type:'cdn',pol:'open',share:.05,cache:{name:'Rackstar',min:10},col:'#F48120',auIx:['syd','mel','bne','per','adl','cbr','hba'],pops:BIGC.concat(['hnl','gum','nou','ppt','dus']),ix:'ALL',blurb:tr('Shields half the web from crowds of bots. The Rackstar Partner Program (RPP) puts a cache in your rack once you send enough traffic.')},
|
||||
{id:'amz',name:"Amazin' Web Services",asn:16590,type:'cdn',pol:'selective',minIx:8,minPni:30,share:.05,col:'#FF9900',auIx:['syd','mel','bne','per'],pops:MIDC.concat(['dus']),ix:'ALL',blurb:tr("The cloud. It's just someone else's Ashburn.")},
|
||||
{id:'msf',name:'Microsnoft',asn:8705,type:'cdn',pol:'selective',minIx:5,minPni:25,share:.04,col:'#00A4EF',auIx:['syd','mel','bne','per'],pops:MIDC.concat(['dus']),ix:'ALL',blurb:tr('Updates. So many updates.')},
|
||||
{id:'bdc',name:'BiteDance',asn:39669,type:'cdn',pol:'open',share:.03,col:'#111111',auIx:[],pops:MIDC.concat(['pek','sha','dus']),ix:'ALL',blurb:tr('Short videos, very long traffic graphs.')},
|
||||
|
|
|
|||
|
|
@ -6,6 +6,61 @@ function setup(ev) {
|
|||
ev("ACT.start({});S.cash=1e8;for(const g of GOALS)S.done[g.id]=0");
|
||||
}
|
||||
|
||||
test('Rackstar requests require enough Crowdflare traffic and a free router port', () => {
|
||||
const { ev, errors } = load();
|
||||
setup(ev);
|
||||
ev("S.pops.fra.bb={d:9.9/NSH.cfl};compute();ACT.cache({city:'fra',net:'cfl'})");
|
||||
assert.equal(ev('S.caches.length'), 0, 'below the traffic threshold');
|
||||
ev("S.pops.fra.bb.d=10/NSH.cfl;compute();selectCity('fra');ACT.tab({t:'peer'})");
|
||||
assert.match(ev("document.getElementById('panelBody').textContent"), /Rackstar/);
|
||||
const cash = ev('S.cash');
|
||||
const ports = ev("portsUsed('fra')");
|
||||
ev("ACT.cache({city:'fra',net:'cfl'})");
|
||||
assert.equal(ev('S.caches.length'), 1, 'eligible at exactly 10 Gbps');
|
||||
assert.equal(ev('S.cash'), cash, 'hardware is free');
|
||||
assert.equal(ev("portsUsed('fra')"), ports + 1);
|
||||
assert.equal(ev('R.cost.caches'), ev('CACHE_MO'));
|
||||
ev("while(portsUsed('fra')<portsMax('fra'))ACT.cache({city:'fra',net:'cfl'})");
|
||||
const boxes = ev('S.caches.length');
|
||||
ev("ACT.cache({city:'fra',net:'cfl'})");
|
||||
assert.equal(ev('S.caches.length'), boxes, 'a full router refuses another box');
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
test('Rackstar serves cacheable Crowdflare traffic locally and overflow uses transit', () => {
|
||||
const { ev, errors } = load();
|
||||
setup(ev);
|
||||
ev("S.pops.fra.rgen=RG.length-1;S.pops.fra.bb={d:200/NSH.cfl};ACT.buyTransit({city:'fra',net:'cog',tier:PORT.length-1});ACT.lagT({id:S.transit[0].id,d:1});ACT.lagT({id:S.transit[0].id,d:1});compute()");
|
||||
const transit = ev('R.useT[S.transit[0].id]');
|
||||
ev("ACT.cache({city:'fra',net:'cfl'})");
|
||||
assert.equal(ev('R.useCache[S.caches[0].id]'), ev('CACHE_CAP'), 'first box fills to 100G');
|
||||
assert.ok(Math.abs(ev('R.useT[S.transit[0].id]') - (transit - 100)) < 1e-6);
|
||||
ev("ACT.cache({city:'fra',net:'cfl'})");
|
||||
assert.ok(Math.abs(ev('Object.values(R.useCache).reduce((a,b)=>a+b,0)') - 170) < 1e-6, '85% is cacheable, the rest still needs an external exit');
|
||||
ev("ACT.rmCache({id:S.caches[0].id});ACT.rmCache({id:S.caches[0].id})");
|
||||
assert.ok(Math.abs(ev('R.useT[S.transit[0].id]') - transit) < 1e-6, 'removal returns traffic to transit');
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
test('Rackstar boxes survive save migration and appear on phone peering panels in every language', () => {
|
||||
for (const lang of ['en', 'it', 'pt', 'fr']) {
|
||||
const { dom, ev, errors } = load(lang === 'en' ? {} : { lang });
|
||||
setup(ev);
|
||||
ev('window.matchMedia=()=>({matches:true})');
|
||||
ev("S.pops.fra.bb={d:10/NSH.cfl};compute();ACT.cache({city:'fra',net:'cfl'});save();S=migrate(JSON.parse(localStorage.getItem('sot-save-v1')));compute()");
|
||||
assert.equal(ev("S.caches.filter(x=>x.net==='cfl').length"), 1, lang);
|
||||
assert.ok(ev('R.useCache[S.caches[0].id]') > 0, lang);
|
||||
for (const [width, height] of [[360, 800], [800, 360]]) {
|
||||
dom.window.innerWidth = width;
|
||||
dom.window.innerHeight = height;
|
||||
ev("selectCity('fra');ACT.tab({t:'peer'});renderAll()");
|
||||
assert.match(dom.window.document.getElementById('panelBody').textContent, /Rackstar/, lang);
|
||||
}
|
||||
assert.deepEqual(errors, [], lang);
|
||||
dom.window.close();
|
||||
}
|
||||
});
|
||||
|
||||
test('big selective peers refuse in some cities, with a reason, and only for a while', () => {
|
||||
const { ev, errors } = load();
|
||||
setup(ev);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue