Playback history can optionally be imported with a server-side setting - How?

122 views
Skip to first unread message

bobstacle

unread,
Apr 29, 2012, 7:29:43 PM4/29/12
to walkaro...@googlegroups.com
Playback history can optionally be imported with a server-side setting - How is this done?

Christian Ohler

unread,
Apr 29, 2012, 9:38:02 PM4/29/12
to walkaro...@googlegroups.com
On Sun, Apr 29, 2012 at 16:29, bobstacle <bobs...@gmail.com> wrote:
> Playback history can optionally be imported with a server-side setting - How
> is this done?

Add a line

-Dimport-preserve-history='true' \

to your runant script and remove the "#" from the line

#third_party/appengine-sdk/sdk/bin/appcfg.sh backends update build/war

from the deploy script. Then, run ./deploy, and import as usual.

Verify the setting by pointing your browser at /admin/flags -- it
should say "import_preserve_history true" among the list of parsed
flags.

Note that importing with history will cost you a lot more money. You
can make it somewhat cheaper by editing webinf/backends.xml and
changing the instance class B8 to B4, B2, or B1 (cheapest), before you
run ./deploy. B1 worked for me.

bobstacle

unread,
Apr 29, 2012, 9:41:20 PM4/29/12
to walkaround-dev
Thanks Christian for the quick response.

I'll try it right now

On Apr 30, 9:38 am, Christian Ohler <oh...@google.com> wrote:

Christian Ohler

unread,
Apr 29, 2012, 10:05:36 PM4/29/12
to walkaro...@googlegroups.com
I forgot to add, import with history is also much slower than without.
If it's too slow, add something like

-Dqueue-rate=3 \

to your runant script, then run

./runant war
third_party/appengine-sdk/sdk/bin/appcfg.sh update_queues build/war

to update the setting. (./deploy will also update the setting, but
the above is cheaper.)

You can use higher queue rates as well, but going too high will cause
errors (and make things slower rather than faster). 1 is the default
and safest, and I haven't tried any other settings, but 3 or 5 or even
10 are probably OK as well.

bobstacle

unread,
Apr 29, 2012, 10:20:19 PM4/29/12
to walkaro...@googlegroups.com
Sorry Christian, it has been a while.....

>    ./runant war 
>   third_party/appengine-sdk/sdk/bin/appcfg.sh update_queues build/war 

>    ./runant war  
this ran fine

but how to I execute this?
>   third_party/appengine-sdk/sdk/bin/appcfg.sh update_queues build/war  

I tried:
./runant war third_party/appengine-sdk/sdk/bin/appcfg.sh update_queues build/war  

Also, when I tried to check the admin flags (localhost:8080/admin/flags) got the following error:
Error 403
Problem accessing /admin/flags. Reason: User not in required role

Thanks.

On Monday, April 30, 2012 10:05:36 AM UTC+8, Christian Ohler wrote:
I forgot to add, import with history is also much slower than without.
 If it's too slow, add something like

   -Dqueue-rate=3 \

to your runant script, then run

    ./runant war
    third_party/appengine-sdk/sdk/bin/appcfg.sh update_queues build/war

to update the setting.  (./deploy will also update the setting, but
the above is cheaper.)

You can use higher queue rates as well, but going too high will cause
errors (and make things slower rather than faster).  1 is the default
and safest, and I haven't tried any other settings, but 3 or 5 or even
10 are probably OK as well.


On Sun, Apr 29, 2012 at 18:41, bobstacle  <bobsta...@gmail.com>  wrote:
> Thanks Christian for the quick response.
>
> I'll try it right now
>
> On Apr 30, 9:38 am, Christian Ohler <oh...@google.com> wrote:
>> On Sun, Apr 29, 2012 at 16:29, bobstacle <bobsta...@gmail.com> wrote:
>> > Playback history can optionally be imported with a server-side setting - How
>> > is this done?
>>
>> Add a line
>>
>>     -Dimport-preserve-history='true' \
>>
>> to your runant script and remove the "#" from the line
>>
>> #third_party/appengine-sdk/sdk/bin/appcfg.sh backends update build/war
>>
>> from the deploy script.  Then, run ./deploy, and import as usual.
>>
>> Verify the setting by pointing your browser at /admin/flags -- it
>> should say "import_preserve_history    true" among the list of parsed
>> flags.
>>
>> Note that importing with history will cost you a lot more money.  You
>> can make it somewhat cheaper by editing webinf/backends.xml and
>> changing the instance class B8 to B4, B2, or B1 (cheapest), before you
>> run ./deploy.  B1 worked for me.

On Monday, April 30, 2012 10:05:36 AM UTC+8, Christian Ohler wrote:
I forgot to add, import with history is also much slower than without.
 If it's too slow, add something like

   -Dqueue-rate=3 \

to your runant script, then run

    ./runant war
    third_party/appengine-sdk/sdk/bin/appcfg.sh update_queues build/war

to update the setting.  (./deploy will also update the setting, but
the above is cheaper.)

You can use higher queue rates as well, but going too high will cause
errors (and make things slower rather than faster).  1 is the default
and safest, and I haven't tried any other settings, but 3 or 5 or even
10 are probably OK as well.


On Sun, Apr 29, 2012 at 18:41, bobstacle  <bobsta...@gmail.com>  wrote:
> Thanks Christian for the quick response.
>
> I'll try it right now
>
> On Apr 30, 9:38 am, Christian Ohler <oh...@google.com> wrote:
>> On Sun, Apr 29, 2012 at 16:29, bobstacle <bobsta...@gmail.com> wrote:
>> > Playback history can optionally be imported with a server-side setting - How
>> > is this done?
>>
>> Add a line
>>
>>     -Dimport-preserve-history='true' \
>>
>> to your runant script and remove the "#" from the line
>>
>> #third_party/appengine-sdk/sdk/bin/appcfg.sh backends update build/war
>>
>> from the deploy script.  Then, run ./deploy, and import as usual.
>>
>> Verify the setting by pointing your browser at /admin/flags -- it
>> should say "import_preserve_history    true" among the list of parsed
>> flags.
>>
>> Note that importing with history will cost you a lot more money.  You
>> can make it somewhat cheaper by editing webinf/backends.xml and
>> changing the instance class B8 to B4, B2, or B1 (cheapest), before you
>> run ./deploy.  B1 worked for me.

bobstacle

unread,
Apr 29, 2012, 10:25:09 PM4/29/12
to walkaro...@googlegroups.com
Wow, I have been up way to long trying to backup my waves.....

Please ignore this part of my last post....


>but how to I execute this?
>>   third_party/appengine-sdk/sdk/bin/appcfg.sh update_queues build/war  

The admin flag problem still remains though.

Thanks.

Christian Ohler

unread,
Apr 29, 2012, 10:57:40 PM4/29/12
to walkaro...@googlegroups.com
On Sun, Apr 29, 2012 at 19:20, bobstacle <bobs...@gmail.com> wrote:
> Also, when I tried to check the admin flags (localhost:8080/admin/flags) got
> the following error:
> Error 403
> Problem accessing /admin/flags. Reason: User not in required role

Try <app-id>.appspot.com/admin/flags , where <app-id> is the name of
your walkaround App Engine app.
Reply all
Reply to author
Forward
0 new messages