Cannot test Warm Restart on Windows

2021-12-07 Thread Damian Chapman
Hi all,

I am trying to test Memcached warm restart on Windows.
I am using v1.6.12.

I used ImDisk to create a RAM disk on Windows on the D: drive (1G)

I start Memcached with the -e option

C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
D:\backup
[restart] no metadata save file, starting with a clean cache

I check the file system and I can see that the backup file is created:

D:\>dir
 Volume in drive D has no label.
 Volume Serial Number is 5881-2000

 Directory of D:\

07/12/2021  11:1767,108,864 backup
   1 File(s) 67,108,864 bytes
   0 Dir(s) 988,749,824 bytes free
   
I start a telnet session and set and get mykey

telnet localhost 11211

set mykey 0 300 4
data
STORED
get mykey
VALUE mykey 0 4
END

I stop Memcached using Ctrl-C and restart

C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
D:\backup
[restart] no metadata save file, starting with a clean cache
Signal handled: Interrupt.

C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
D:\backup
[restart] no metadata save file, starting with a clean cache

I think the issue may be here as I would not expect to restart with a clean 
cache. I see no
metadata file on the D: drive.

When I run the telnet session again and type the get mykey command it does 
not find the data value.

Any help would be really appreciated.
Thank you in advance.

Kind regards,
Damian.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/memcached/b23103c0-4e40-4ab5-b6e4-d095685d5220n%40googlegroups.com.


Re: Cannot test Warm Restart on Windows

2021-12-08 Thread Damian Chapman
It looks like Crtl-C is incorrect here to stop Memcached gracefully.

To stop gracefully it needs 

kill -SIGUSR1  where  is the process id 
of Memcached

but SIGUSR1 is a Unix/Linux signal for inter process communication and it 
is not used in Windows.

This is why my testing does not work in Windows.

On Tuesday, 7 December 2021 at 11:35:00 UTC Damian Chapman wrote:

> Hi all,
>
> I am trying to test Memcached warm restart on Windows.
> I am using v1.6.12.
>
> I used ImDisk to create a RAM disk on Windows on the D: drive (1G)
>
> I start Memcached with the -e option
>
> C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
> D:\backup
> [restart] no metadata save file, starting with a clean cache
>
> I check the file system and I can see that the backup file is created:
>
> D:\>dir
>  Volume in drive D has no label.
>  Volume Serial Number is 5881-2000
>
>  Directory of D:\
>
> 07/12/2021  11:1767,108,864 backup
>1 File(s) 67,108,864 bytes
>0 Dir(s) 988,749,824 bytes free
>
> I start a telnet session and set and get mykey
>
> telnet localhost 11211
>
> set mykey 0 300 4
> data
> STORED
> get mykey
> VALUE mykey 0 4
> END
>
> I stop Memcached using Ctrl-C and restart
>
> C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
> D:\backup
> [restart] no metadata save file, starting with a clean cache
> Signal handled: Interrupt.
>
> C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
> D:\backup
> [restart] no metadata save file, starting with a clean cache
>
> I think the issue may be here as I would not expect to restart with a 
> clean cache. I see no
> metadata file on the D: drive.
>
> When I run the telnet session again and type the get mykey command it does 
> not find the data value.
>
> Any help would be really appreciated.
> Thank you in advance.
>
> Kind regards,
> Damian.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/memcached/de3cd914-52c6-4fe2-b5eb-422407247d0an%40googlegroups.com.


Re: Cannot test Warm Restart on Windows

2021-12-08 Thread dormando
Where did you get a windows build of 1.6.12?

We don't officially support windows, and I hadn't heard of anyone even making 
recent builds of a windows fork. You're best off asking whomever's doing that 
build.

> On Dec 8, 2021, at 8:17 AM, Damian Chapman  wrote:
> 
> It looks like Crtl-C is incorrect here to stop Memcached gracefully.
> 
> To stop gracefully it needs 
> 
> kill -SIGUSR1  where  is the process id 
> of Memcached
> 
> but SIGUSR1 is a Unix/Linux signal for inter process communication and it is 
> not used in Windows.
> 
> This is why my testing does not work in Windows.
> 
>> On Tuesday, 7 December 2021 at 11:35:00 UTC Damian Chapman wrote:
>> Hi all,
>> 
>> I am trying to test Memcached warm restart on Windows.
>> I am using v1.6.12.
>> 
>> I used ImDisk to create a RAM disk on Windows on the D: drive (1G)
>> 
>> I start Memcached with the -e option
>> 
>> C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
>> D:\backup
>> [restart] no metadata save file, starting with a clean cache
>> 
>> I check the file system and I can see that the backup file is created:
>> 
>> D:\>dir
>>  Volume in drive D has no label.
>>  Volume Serial Number is 5881-2000
>> 
>>  Directory of D:\
>> 
>> 07/12/2021  11:1767,108,864 backup
>>1 File(s) 67,108,864 bytes
>>0 Dir(s) 988,749,824 bytes free
>> 
>> I start a telnet session and set and get mykey
>> 
>> telnet localhost 11211
>> 
>> set mykey 0 300 4
>> data
>> STORED
>> get mykey
>> VALUE mykey 0 4
>> END 
>> 
>> I stop Memcached using Ctrl-C and restart
>> 
>> C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
>> D:\backup
>> [restart] no metadata save file, starting with a clean cache
>> Signal handled: Interrupt.
>> 
>> C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
>> D:\backup
>> [restart] no metadata save file, starting with a clean cache
>> 
>> I think the issue may be here as I would not expect to restart with a clean 
>> cache. I see no
>> metadata file on the D: drive.
>> 
>> When I run the telnet session again and type the get mykey command it does 
>> not find the data value.
>> 
>> Any help would be really appreciated.
>> Thank you in advance.
>> 
>> Kind regards,
>> Damian.
>> 
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to memcached+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/memcached/de3cd914-52c6-4fe2-b5eb-422407247d0an%40googlegroups.com.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/memcached/300EEF98-4C1A-4D1D-8C5A-691DD74DD4D4%40rydia.net.


Re: Cannot test Warm Restart on Windows

2021-12-08 Thread Damian Chapman
Hi Dormando,

Thanks for responding to me.

I got the Windows build from https://github.com/nono303/memcached

Kind regards,
Damian.

On Wednesday, 8 December 2021 at 19:14:11 UTC Dormando wrote:

> Where did you get a windows build of 1.6.12?
>
> We don't officially support windows, and I hadn't heard of anyone even 
> making recent builds of a windows fork. You're best off asking whomever's 
> doing that build.
>
> On Dec 8, 2021, at 8:17 AM, Damian Chapman  wrote:
>
> It looks like Crtl-C is incorrect here to stop Memcached gracefully.
>
>
> To stop gracefully it needs 
>
> kill -SIGUSR1  where  is the process 
> id of Memcached
>
> but SIGUSR1 is a Unix/Linux signal for inter process communication and it 
> is not used in Windows.
>
> This is why my testing does not work in Windows.
>
> On Tuesday, 7 December 2021 at 11:35:00 UTC Damian Chapman wrote:
>
>> Hi all,
>>
>> I am trying to test Memcached warm restart on Windows.
>> I am using v1.6.12.
>>
>> I used ImDisk to create a RAM disk on Windows on the D: drive (1G)
>>
>> I start Memcached with the -e option
>>
>> C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
>> D:\backup
>> [restart] no metadata save file, starting with a clean cache
>>
>> I check the file system and I can see that the backup file is created:
>>
>> D:\>dir
>>  Volume in drive D has no label.
>>  Volume Serial Number is 5881-2000
>>
>>  Directory of D:\
>>
>> 07/12/2021  11:1767,108,864 backup
>>1 File(s) 67,108,864 bytes
>>0 Dir(s) 988,749,824 bytes free
>>
>> I start a telnet session and set and get mykey
>>
>> telnet localhost 11211
>>
>> set mykey 0 300 4
>> data
>> STORED
>> get mykey
>> VALUE mykey 0 4
>> END
>>
>> I stop Memcached using Ctrl-C and restart
>>
>> C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
>> D:\backup
>> [restart] no metadata save file, starting with a clean cache
>> Signal handled: Interrupt.
>>
>> C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
>> D:\backup
>> [restart] no metadata save file, starting with a clean cache
>>
>> I think the issue may be here as I would not expect to restart with a 
>> clean cache. I see no
>> metadata file on the D: drive.
>>
>> When I run the telnet session again and type the get mykey command it 
>> does not find the data value.
>>
>> Any help would be really appreciated.
>> Thank you in advance.
>>
>> Kind regards,
>> Damian.
>>
>> -- 
>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to memcached+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/memcached/de3cd914-52c6-4fe2-b5eb-422407247d0an%40googlegroups.com
>  
> 
> .
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/memcached/59845faf-dc91-4944-afc0-7643356eb68an%40googlegroups.com.


Re: Cannot test Warm Restart on Windows

2021-12-17 Thread dormando
Hey,

Sorry for the late response; I have no idea who this person is or how it's
being built and there doesn't seem like a code patch?

So you should file an issue with them if you haven't already.

On Wed, 8 Dec 2021, Damian Chapman wrote:

> Hi Dormando,
> Thanks for responding to me.
>
> I got the Windows build from https://github.com/nono303/memcached
>
> Kind regards,
> Damian.
>
> On Wednesday, 8 December 2021 at 19:14:11 UTC Dormando wrote:
>   Where did you get a windows build of 1.6.12?
> We don't officially support windows, and I hadn't heard of anyone even making 
> recent builds of a windows
> fork. You're best off asking whomever's doing that build.
>
>   On Dec 8, 2021, at 8:17 AM, Damian Chapman  wrote:
>
>   It looks like Crtl-C is incorrect here to stop Memcached gracefully.
>
>
> To stop gracefully it needs 
>
> kill -SIGUSR1  where  is the process id 
> of Memcached
>
> but SIGUSR1 is a Unix/Linux signal for inter process communication and it is 
> not used in Windows.
>
> This is why my testing does not work in Windows.
>
> On Tuesday, 7 December 2021 at 11:35:00 UTC Damian Chapman wrote:
>   Hi all,
> I am trying to test Memcached warm restart on Windows.
> I am using v1.6.12.
>
> I used ImDisk to create a RAM disk on Windows on the D: drive (1G)
>
> I start Memcached with the -e option
>
> C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e D:\backup
> [restart] no metadata save file, starting with a clean cache
>
> I check the file system and I can see that the backup file is created:
>
> D:\>dir
>  Volume in drive D has no label.
>  Volume Serial Number is 5881-2000
>
>  Directory of D:\
>
> 07/12/2021  11:17        67,108,864 backup
>                1 File(s)     67,108,864 bytes
>                0 Dir(s)     988,749,824 bytes free
>    
> I start a telnet session and set and get mykey
>
> telnet localhost 11211
>
> set mykey 0 300 4
> data
> STORED
> get mykey
> VALUE mykey 0 4
> END    
>
> I stop Memcached using Ctrl-C and restart
>
> C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e D:\backup
> [restart] no metadata save file, starting with a clean cache
> Signal handled: Interrupt.
>
> C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e D:\backup
> [restart] no metadata save file, starting with a clean cache
>
> I think the issue may be here as I would not expect to restart with a clean 
> cache. I see no
> metadata file on the D: drive.
>
> When I run the telnet session again and type the get mykey command it does 
> not find the data
> value.
>
> Any help would be really appreciated.
> Thank you in advance.
>
> Kind regards,
> Damian.
>
>   --
>
>   ---
>   You received this message because you are subscribed to the Google 
> Groups "memcached" group.
>   To unsubscribe from this group and stop receiving emails from it, send 
> an email to
>   memcached+...@googlegroups.com.
>   To view this discussion on the web visit
>   
> https://groups.google.com/d/msgid/memcached/de3cd914-52c6-4fe2-b5eb-422407247d0an%40googlegroups.com.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to
> memcached+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/memcached/59845faf-dc91-4944-afc0-7643356eb68an%40googlegroups.com.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/memcached/c4f89c86-7720-38a0-3f8b-5822b81d77e7%40rydia.net.


Re: Cannot test Warm Restart on Windows

2021-12-18 Thread Damian Chapman
No worries. Thanks Dormando.

On Fri, Dec 17, 2021 at 7:57 PM dormando  wrote:
>
> Hey,
>
> Sorry for the late response; I have no idea who this person is or how it's
> being built and there doesn't seem like a code patch?
>
> So you should file an issue with them if you haven't already.
>
> On Wed, 8 Dec 2021, Damian Chapman wrote:
>
> > Hi Dormando,
> > Thanks for responding to me.
> >
> > I got the Windows build from https://github.com/nono303/memcached
> >
> > Kind regards,
> > Damian.
> >
> > On Wednesday, 8 December 2021 at 19:14:11 UTC Dormando wrote:
> >   Where did you get a windows build of 1.6.12?
> > We don't officially support windows, and I hadn't heard of anyone even 
> > making recent builds of a windows
> > fork. You're best off asking whomever's doing that build.
> >
> >   On Dec 8, 2021, at 8:17 AM, Damian Chapman  
> > wrote:
> >
> >   It looks like Crtl-C is incorrect here to stop Memcached gracefully.
> >
> >
> > To stop gracefully it needs
> >
> > kill -SIGUSR1  where  is the process id 
> > of Memcached
> >
> > but SIGUSR1 is a Unix/Linux signal for inter process communication and it 
> > is not used in Windows.
> >
> > This is why my testing does not work in Windows.
> >
> > On Tuesday, 7 December 2021 at 11:35:00 UTC Damian Chapman wrote:
> >   Hi all,
> > I am trying to test Memcached warm restart on Windows.
> > I am using v1.6.12.
> >
> > I used ImDisk to create a RAM disk on Windows on the D: drive (1G)
> >
> > I start Memcached with the -e option
> >
> > C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
> > D:\backup
> > [restart] no metadata save file, starting with a clean cache
> >
> > I check the file system and I can see that the backup file is created:
> >
> > D:\>dir
> >  Volume in drive D has no label.
> >  Volume Serial Number is 5881-2000
> >
> >  Directory of D:\
> >
> > 07/12/2021  11:1767,108,864 backup
> >1 File(s) 67,108,864 bytes
> >0 Dir(s) 988,749,824 bytes free
> >
> > I start a telnet session and set and get mykey
> >
> > telnet localhost 11211
> >
> > set mykey 0 300 4
> > data
> > STORED
> > get mykey
> > VALUE mykey 0 4
> > END
> >
> > I stop Memcached using Ctrl-C and restart
> >
> > C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
> > D:\backup
> > [restart] no metadata save file, starting with a clean cache
> > Signal handled: Interrupt.
> >
> > C:\Users\chapmand\memcached\1.6.12\libevent-2.1\x64>memcached.exe -e 
> > D:\backup
> > [restart] no metadata save file, starting with a clean cache
> >
> > I think the issue may be here as I would not expect to restart with a clean 
> > cache. I see no
> > metadata file on the D: drive.
> >
> > When I run the telnet session again and type the get mykey command it does 
> > not find the data
> > value.
> >
> > Any help would be really appreciated.
> > Thank you in advance.
> >
> > Kind regards,
> > Damian.
> >
> >   --
> >
> >   ---
> >   You received this message because you are subscribed to the Google 
> > Groups "memcached" group.
> >   To unsubscribe from this group and stop receiving emails from it, 
> > send an email to
> >   memcached+...@googlegroups.com.
> >   To view this discussion on the web visit
> >   
> > https://groups.google.com/d/msgid/memcached/de3cd914-52c6-4fe2-b5eb-422407247d0an%40googlegroups.com.
> >
> > --
> >
> > ---
> > You received this message because you are subscribed to the Google Groups 
> > "memcached" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to
> > memcached+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/memcached/59845faf-dc91-4944-afc0-7643356eb68an%40googlegroups.com.
> >
> >
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to memcached+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/memcached/c4f89c86-7720-38a0-3f8b-5822b81d77e7%40rydia.net.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/memcached/CAPL%2Biw5oLANv8pyNaJTULKVhqkzo7Cr__dQ1n4KbVHXfoZVcjA%40mail.gmail.com.