줌 레벨별로 미리 렌더링 하기

 

 

$ render_list -v --all -n 1 --socket=/var/run/renderd/renderd.sock --map=ajt --min-zoom=10 max-zoom=11

 

1 : core 수

ajt : 맵데이터가 저장된 폴더명 (/var/lib/mod_tile/ajt)

 

renderaccount@48efa0ebd424:/var/lib/mod_tile$ render_list -v --all -n 1 --socket=/var/run/renderd/renderd.sock --min-zoom=10 --max-zoom=11 --map=ajt
debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile
Rendering client
Starting 1 rendering threads
Rendering all tiles from zoom 10 to zoom 11
Rendering all tiles for zoom 10 from (0, 0) to (1023, 1023)

 

 

renderd 로그 보기

 

아래와 같은 로그를 확인할 수 있다.

 

 

renderd[58384]: DEBUG: Sending render cmd(3 ajt 10/72/472) with protocol version 2 to fd 11
renderd[58384]: DEBUG: Got incoming request with protocol version 2
renderd[58384]: DEBUG: Got command RenderBulk fd(11) xml(ajt), z(10), x(72), y(480), mime(image/png), options()
renderd[58384]: DEBUG: START TILE ajt 10 72-79 480-487, new metatile
renderd[58384]: Rendering projected coordinates 10 72 480 -> -17219733.732094|939258.203569 -16906647.664237|1252344.271425 to a 8 x 8 tile
renderd[58384]: DEBUG: DONE TILE ajt 10 72-79 480-487 in 0.369 seconds
debug: Creating and writing a metatile to /var/lib/mod_tile/ajt/10/0/0/1/78/128.meta

renderd[58384]: DEBUG: Sending render cmd(3 ajt 10/72/480) with protocol version 2 to fd 11
renderd[58384]: DEBUG: Got incoming request with protocol version 2
renderd[58384]: DEBUG: Got command RenderBulk fd(11) xml(ajt), z(10), x(72), y(488), mime(image/png), options()
renderd[58384]: DEBUG: START TILE ajt 10 72-79 488-495, new metatile
renderd[58384]: Rendering projected coordinates 10 72 488 -> -17219733.732094|626172.135713 -16906647.664237|939258.203569 to a 8 x 8 tile
renderd[58384]: DEBUG: DONE TILE ajt 10 72-79 488-495 in 0.369 seconds
debug: Creating and writing a metatile to /var/lib/mod_tile/ajt/10/0/0/1/78/136.meta

renderd[58384]: DEBUG: Sending render cmd(3 ajt 10/72/488) with protocol version 2 to fd 11
renderd[58384]: DEBUG: Got incoming request with protocol version 2
renderd[58384]: DEBUG: Got command RenderBulk fd(11) xml(ajt), z(10), x(72), y(496), mime(image/png), options()
renderd[58384]: DEBUG: START TILE ajt 10 72-79 496-503, new metatile
renderd[58384]: Rendering projected coordinates 10 72 496 -> -17219733.732094|313086.067856 -16906647.664237|626172.135713 to a 8 x 8 tile
renderd[58384]: DEBUG: DONE TILE ajt 10 72-79 496-503 in 0.369 seconds
debug: Creating and writing a metatile to /var/lib/mod_tile/ajt/10/0/0/1/79/128.meta

renderd[58384]: DEBUG: Sending render cmd(3 ajt 10/72/496) with protocol version 2 to fd 11
renderd[58384]: DEBUG: Got incoming request with protocol version 2
renderd[58384]: DEBUG: Got command RenderBulk fd(11) xml(ajt), z(10), x(72), y(504), mime(image/png), options()
renderd[58384]: DEBUG: START TILE ajt 10 72-79 504-511, new metatile
renderd[58384]: Rendering projected coordinates 10 72 504 -> -17219733.732094|0.000000 -16906647.664237|313086.067856 to a 8 x 8 tile
renderd[58384]: DEBUG: DONE TILE ajt 10 72-79 504-511 in 0.373 seconds
debug: Creating and writing a metatile to /var/lib/mod_tile/ajt/10/0/0/1/79/136.meta

renderd[58384]: DEBUG: Sending render cmd(3 ajt 10/72/504) with protocol version 2 to fd 11
renderd[58384]: DEBUG: Got incoming request with protocol version 2
renderd[58384]: DEBUG: Got command RenderBulk fd(11) xml(ajt), z(10), x(72), y(512), mime(image/png), options()
renderd[58384]: DEBUG: START TILE ajt 10 72-79 512-519, new metatile
renderd[58384]: Rendering projected coordinates 10 72 512 -> -17219733.732094|-313086.067856 -16906647.664237|0.000000 to a 8 x 8 tile
renderd[58384]: DEBUG: DONE TILE ajt 10 72-79 512-519 in 0.374 seconds
debug: Creating and writing a metatile to /var/lib/mod_tile/ajt/10/0/0/2/64/128.meta

renderd[58384]: DEBUG: Sending render cmd(3 ajt 10/72/512) with protocol version 2 to fd 11
renderd[58384]: DEBUG: Got incoming request with protocol version 2
renderd[58384]: DEBUG: Got command RenderBulk fd(11) xml(ajt), z(10), x(72), y(520), mime(image/png), options()
renderd[58384]: DEBUG: START TILE ajt 10 72-79 520-527, new metatile
renderd[58384]: Rendering projected coordinates 10 72 520 -> -17219733.732094|-626172.135713 -16906647.664237|-313086.067856 to a 8 x 8 tile
renderd[58384]: DEBUG: DONE TILE ajt 10 72-79 520-527 in 0.368 seconds
debug: Creating and writing a metatile to /var/lib/mod_tile/ajt/10/0/0/2/64/136.meta

renderd[58384]: DEBUG: Sending render cmd(3 ajt 10/72/520) with protocol version 2 to fd 11
renderd[58384]: DEBUG: Got incoming request with protocol version 2
renderd[58384]: DEBUG: Got command RenderBulk fd(11) xml(ajt), z(10), x(72), y(528), mime(image/png), options()
renderd[58384]: DEBUG: START TILE ajt 10 72-79 528-535, new metatile
renderd[58384]: Rendering projected coordinates 10 72 528 -> -17219733.732094|-939258.203569 -16906647.664237|-626172.135713 to a 8 x 8 tile
renderd[58384]: DEBUG: DONE TILE ajt 10 72-79 528-535 in 0.379 seconds
debug: Creating and writing a metatile to /var/lib/mod_tile/ajt/10/0/0/2/65/128.meta

renderd[58384]: DEBUG: Sending render cmd(3 ajt 10/72/528) with protocol version 2 to fd 11
renderd[58384]: DEBUG: Got incoming request with protocol version 2
renderd[58384]: DEBUG: Got command RenderBulk fd(11) xml(ajt), z(10), x(72), y(536), mime(image/png), options()
renderd[58384]: DEBUG: START TILE ajt 10 72-79 536-543, new metatile
renderd[58384]: Rendering projected coordinates 10 72 536 -> -17219733.732094|-1252344.271425 -16906647.664237|-939258.203569 to a 8 x 8 tile
renderd[58384]: DEBUG: DONE TILE ajt 10 72-79 536-543 in 0.377 seconds
debug: Creating and writing a metatile to /var/lib/mod_tile/ajt/10/0/0/2/65/136.meta

renderd[58384]: DEBUG: Sending render cmd(3 ajt 10/72/536) with protocol version 2 to fd 11
renderd[58384]: DEBUG: Got incoming request with protocol version 2
renderd[58384]: DEBUG: Got command RenderBulk fd(11) xml(ajt), z(10), x(72), y(544), mime(image/png), options()
renderd[58384]: DEBUG: START TILE ajt 10 72-79 544-551, new metatile
renderd[58384]: Rendering projected coordinates 10 72 544 -> -17219733.732094|-1565430.339281 -16906647.664237|-1252344.271425 to a 8 x 8 tile
renderd[58384]: DEBUG: DONE TILE ajt 10 72-79 544-551 in 0.378 seconds
debug: Creating and writing a metatile to /var/lib/mod_tile/ajt/10/0/0/2/66/128.meta

renderd[58384]: DEBUG: Sending render cmd(3 ajt 10/72/544) with protocol version 2 to fd 11
renderd[58384]: DEBUG: Got incoming request with protocol version 2
renderd[58384]: DEBUG: Got command RenderBulk fd(11) xml(ajt), z(10), x(72), y(552), mime(image/png), options()
renderd[58384]: DEBUG: START TILE ajt 10 72-79 552-559, new metatile
renderd[58384]: Rendering projected coordinates 10 72 552 -> -17219733.732094|-1878516.407137 -16906647.664237|-1565430.339281 to a 8 x 8 tile
renderd[58384]: DEBUG: DONE TILE ajt 10 72-79 552-559 in 0.386 seconds
debug: Creating and writing a metatile to /var/lib/mod_tile/ajt/10/0/0/2/66/136.meta

renderd[58384]: DEBUG: Sending render cmd(3 ajt 10/72/552) with protocol version 2 to fd 11
renderd[58384]: DEBUG: Got incoming request with protocol version 2
renderd[58384]: DEBUG: Got command RenderBulk fd(11) xml(ajt), z(10), x(72), y(560), mime(image/png), options()
renderd[58384]: DEBUG: START TILE ajt 10 72-79 560-567, new metatile
renderd[58384]: Rendering projected coordinates 10 72 560 -> -17219733.732094|-2191602.474994 -16906647.664237|-1878516.407137 to a 8 x 8 tile
renderd[58384]: DEBUG: DONE TILE ajt 10 72-79 560-567 in 0.378 seconds
debug: Creating and writing a metatile to /var/lib/mod_tile/ajt/10/0/0/2/67/128.meta

renderd[58384]: DEBUG: Sending render cmd(3 ajt 10/72/560) with protocol version 2 to fd 11
renderd[58384]: DEBUG: Got incoming request with protocol version 2
renderd[58384]: DEBUG: Got command RenderBulk fd(11) xml(ajt), z(10), x(72), y(568), mime(image/png), options()
renderd[58384]: DEBUG: START TILE ajt 10 72-79 568-575, new metatile
renderd[58384]: Rendering projected coordinates 10 72 568 -> -17219733.732094|-2504688.542850 -16906647.664237|-2191602.474994 to a 8 x 8 tile

 

 

 

렌더링된 맵데이터 용량 확인

 

아래와 같이 점점 증가하고 있음을 확인할 수 있다.

root@48efa0ebd424:/var/lib/mod_tile# pwd
/var/lib/mod_tile
root@48efa0ebd424:/var/lib/mod_tile# du -sh ajt
412M	ajt
root@48efa0ebd424:/var/lib/mod_tile# du -sh ajt
412M	ajt
root@48efa0ebd424:/var/lib/mod_tile# du -sh ajt
413M	ajt
root@48efa0ebd424:/var/lib/mod_tile# du -sh ajt
414M	ajt
root@48efa0ebd424:/var/lib/mod_tile#

 

블로그 이미지

엘로드넷

,