-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load testing!!! #23
Comments
https://mapknitter.org/profile/eustatic and https://mapknitter.org/profile/cfastie probably have some GIANT ones.
|
Please point |
🚂 |
Ok did this although last time there were 4 entries, now only one?
Thanks!!!
…On Sat, May 4, 2019, 2:39 AM Sebastian Silva ***@***.***> wrote:
🚂
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J5WGI6NRXZYDSGEP43PTUVPPANCNFSM4HKCHODA>
.
|
Hmm, maybe I did it wrong? I'll try directly at |
Hmm, the log isn't showing any requests reaching it... strange. |
aha!!! http. duh. |
http://export.mapknitter.org/export?url=https://mapknitter.org/maps/pvdtest/warpables.json&scale=30 works! Great. Hmm. Despite my changes in #27 it's still only displaying a string, not a JSON object with the location of the JPG file: http://export.mapknitter.org/id/1556986755/status.json |
OK, outputting geotiff and zip, and echoing more of the status and paths to console: #28 |
http://export.mapknitter.org/id/1556986755/status.json seems still stuck on |
Strange, i'm not seeing any of the kinds of log output we had seen previously, even last night, like:
Wonder why? I'm looking in the logs for Cloud Build... maybe that's no longer the right place... |
#28 merged, deploying revision once it's ready... |
Aha, i bet i'm in the wrong cloud system. Kubernetes maybe? |
Looks like it. I'll try deploying it again. |
OK, i'm a bit out of my depth now. But the latest main branch of this repo is ready to go! |
I'm deploying from kubernetes |
Here's some pointers to docs for kubernetes... I'm using the console for
looking at logs sanely:
https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app
$ kubectl get pod
NAME READY STATUS
RESTARTS AGE
mapknitter-exporter-kubes-657bc75dbf-hfdb8 1/1 Running
0 3m48s
mapknitter-exporter-kubes-657bc75dbf-zs829 1/1 Running
0 3m50s
mapknitter-exporter-kubes-657bc75dbf-zxjf7 1/1 Running
0 3m33s
$ kubectl log -f NAME
for log...
:-)
…On 4/05/19 11:34, Jeffrey Warren wrote:
Strange, i'm not seeing any of the kinds of log output we had seen
previously, even last night, like:
|2019-05-04T04:40:20.413119293Z- [-33400560.850078963,
11671074.30096948] 2019-05-04T04:40:20.413170584Zwarping 11 of 19
2019-05-04T04:40:20.573044610Zconvert -contrast-stretch 0
public/warps/193358-working/w193358-a_step_11_IMG_5313.JPG -crop
4287x4287+0+0! -flatten -distort Perspective '0,0 0,383 4287,0 99,0
4287,2821 314,122 0,2821 237,506' -flatten -crop 506x506+0+0! +repage
public/warps/4621/w193358.png |
Wonder why?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABQYS3ADNC27VDW2BPHVQ3PTW3HZANCNFSM4HKCHODA>.
|
Thanks!!! It's strange, I don't see the other files uploading to the
bucket. Hmm. But we're getting proper Json now!
On Sat, May 4, 2019, 3:03 PM Sebastian Silva <[email protected]>
wrote:
… Here's some pointers to docs for kubernetes... I'm using the console for
looking at logs sanely:
https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app
$ kubectl get pod
NAME READY STATUS
RESTARTS AGE
mapknitter-exporter-kubes-657bc75dbf-hfdb8 1/1 Running
0 3m48s
mapknitter-exporter-kubes-657bc75dbf-zs829 1/1 Running
0 3m50s
mapknitter-exporter-kubes-657bc75dbf-zxjf7 1/1 Running
0 3m33s
$ kubectl log -f NAME
for log...
:-)
On 4/05/19 11:34, Jeffrey Warren wrote:
>
> Strange, i'm not seeing any of the kinds of log output we had seen
> previously, even last night, like:
>
> |2019-05-04T04:40:20.413119293Z- [-33400560.850078963,
> 11671074.30096948] 2019-05-04T04:40:20.413170584Zwarping 11 of 19
> 2019-05-04T04:40:20.573044610Zconvert -contrast-stretch 0
> public/warps/193358-working/w193358-a_step_11_IMG_5313.JPG -crop
> 4287x4287+0+0! -flatten -distort Perspective '0,0 0,383 4287,0 99,0
> 4287,2821 314,122 0,2821 237,506' -flatten -crop 506x506+0+0! +repage
> public/warps/4621/w193358.png |
>
> Wonder why?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <
#23 (comment)
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AABQYS3ADNC27VDW2BPHVQ3PTW3HZANCNFSM4HKCHODA
>.
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J4RHLCOOIGMSGLCBELPTXMW3ANCNFSM4HKCHODA>
.
|
I wonder if it's this line ... Is file.open the right way to upload the image? mapknitter-exporter-sinatra/app.rb Line 172 in bdfb816
|
Maybe File.open().read instead? Hmm. |
Hmm, no, this says File.open is correct: http://fog.io/storage/ |
I think it needs a rescue block and to try again a few times
El sábado, 4 de mayo de 2019, Jeffrey Warren <[email protected]>
escribió:
… Hmm, no, this says File.open is correct: http://fog.io/storage/
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABQYS3ARBO5NZCLSZ3TGGDPTXZW7ANCNFSM4HKCHODA>
.
--
Sebastian Silva
http://somosazucar.org/
|
#29 once merged is ready to be deployed too! |
I think we are running into fog/fog-google#416 |
🎉 This big map fully exported (cropping bug tracking here: #32): https://mapknitter.org/maps/irish-uk-border-mapping/warpables.json ~30 images of ~2mb each! URL was this but it now says:
so, i think these links aren't permanent, which is good to know. |
Noting for optimization, from https://gis.stackexchange.com/a/44739:
|
Deployment is now automated to facilitate improving it!
El miércoles, 22 de mayo de 2019, Jeffrey Warren <[email protected]>
escribió:
… Noting for optimization, from https://gis.stackexchange.com/a/44739:
While I don't know why GDAL provides this overlap in functionality, be sure to set the cache for gdalwarp to make it really fast:
# assuming 3G of cache here:
gdalwarp --config GDAL_CACHEMAX 3000 -wm 3000 $(list_of_tiffs) merged.tiff
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#23?email_source=notifications&email_token=AABQYSYHMRJ5IWVJVMQAADDPWYO6RA5CNFSM4HKCHODKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWBBXHQ#issuecomment-495066014>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABQYSZL3EJA7OOMMMRTG2TPWYO6RANCNFSM4HKCHODA>
.
--
Sebastian Silva
http://somosazucar.org/
|
Awesome! So, I just push a new commit? Thanks!!!
…On Thu, May 23, 2019, 9:59 AM Sebastian Silva ***@***.***> wrote:
Deployment is now automated to facilitate improving it!
El miércoles, 22 de mayo de 2019, Jeffrey Warren ***@***.***
>
escribió:
> Noting for optimization, from https://gis.stackexchange.com/a/44739:
>
> While I don't know why GDAL provides this overlap in functionality, be
sure to set the cache for gdalwarp to make it really fast:
>
> # assuming 3G of cache here:
> gdalwarp --config GDAL_CACHEMAX 3000 -wm 3000 $(list_of_tiffs)
merged.tiff
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <
#23?email_source=notifications&email_token=AABQYSYHMRJ5IWVJVMQAADDPWYO6RA5CNFSM4HKCHODKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWBBXHQ#issuecomment-495066014
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AABQYSZL3EJA7OOMMMRTG2TPWYO6RANCNFSM4HKCHODA
>
> .
>
--
Sebastian Silva
http://somosazucar.org/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#23?email_source=notifications&email_token=AAAF6J6HMN2LJTM7K4ZS7JTPW2PILA5CNFSM4HKCHODKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWCJ3GI#issuecomment-495230361>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J2ZL3IMN3Q76OMQMQTPW2PILANCNFSM4HKCHODA>
.
|
https://mapknitter.org/maps/otter-view-park-west -- @icarito this looks pretty darn good! I see a couple edges which are not fuzzy, and so that means they were cut off partway through their composite processes. I'm wondering how it happened, but it could be either a crash partway through, OR it could be that their new bounding boxes are not properly calculated and they're just cropped wrong. I'll have to check the intermediate images to be sure. I'm closing the "missing images" and "cropping" issues and moving back here for more load testing. |
It's at |
Oh no, i started a new one. Maybe we should invent a way to cancel exports... |
And now, i try http://export.mapknitter.org/working/1558800531/w132014.tif (the 17th or 18th image) and get:
However a few moments later it loads and i download the tiff. |
It looks like at a stage earlier than the distortion and blending/cropping -- so in gdalwarp or gdal_translate, not in imagemagick |
OK, so, having tracked this, a fix should resolve #39 |
Just noting that this export: https://mapknitter-exports-warps.storage.googleapis.com/1559057443/status.json Based on https://mapknitter.org/maps/usfws-restoration-bayou-bonfouca-southeast-survey (9 images) Just output this at 9cm/px: https://mapknitter-exports-warps.storage.googleapis.com/1559057443/1559057443.jpg It's |
@tech4GT Take a look at this last export we just generated! 8408x14912 pixels!!! |
|
@jywarren Can you share the details on scaling with the applied scale also? I mean right now I am just generating a canvas by adding all the individual widths and heights, is there a better way to do it? |
Sure, i'll open an issue here:
publiclab/image-sequencer-app#14
…On Tue, May 28, 2019 at 2:20 PM Varun Gupta ***@***.***> wrote:
@jywarren <https://github.com/jywarren> Can you share the details on
scaling with the applied scale also? I mean right now I am just generating
a canvas by adding all the individual widths and heights, is there a better
way to do it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#23?email_source=notifications&email_token=AAAF6JYS7P56C7RCKND6P7DPXVZTBA5CNFSM4HKCHODKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWM73II#issuecomment-496631201>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J7QKHRUZOQMX4AS5E3PXVZTBANCNFSM4HKCHODA>
.
|
We'll soon be able to compare to publiclab/image-sequencer-app#19 -- the pure JavaScript implementation! |
Small/medium: http://e.mapknitter.org/export?url=https://mapknitter.org/maps/ceres--2/warpables.json&scale=30 is small/medium; 2-3 images of 5mb each maybe?
Med/large: https://mapknitter.org/maps/irish-uk-border-mapping/warpables.json has ~43 images of ~2mb each!
We'll find a bigger one too!!!
The text was updated successfully, but these errors were encountered: