ZINTERSTORE not working in https://try.redis.io/ - redis

ZINTERSTORE command is not identified by Redis CLI on https://try.redis.io/.
The Redis command's guide highlight that ZINTERSTORE (https://redis.io/commands/zinterstore) command is available from 2.0.0 version. The Redis available on try.redis.io is with version 4.0.6 and it's still not working.
Can someone point out why I'm seeing this issue? Thanks.
> help ZINTERSTORE
(error) I'm sorry, I don't recognize that command. Please type HELP for one of these commands: DECR, DECRBY, DEL, EXISTS, EXPIRE, GET, GETSET, HDEL, HEXISTS, HGET, HGETALL, HINCRBY, HKEYS, HLEN, HMGET, HMSET, HSET, HVALS, INCR, INCRBY, KEYS, LINDEX, LLEN, LPOP, LPUSH, LRANGE, LREM, LSET, LTRIM, MGET, MSET, MSETNX, MULTI, PEXPIRE, RENAME, RENAMENX, RPOP, RPOPLPUSH, RPUSH, SADD, SCARD, SDIFF, SDIFFSTORE, SET, SETEX, SETNX, SINTER, SINTERSTORE, SISMEMBER, SMEMBERS, SMOVE, SORT, SPOP, SRANDMEMBER, SREM, SUNION, SUNIONSTORE, TTL, TYPE, ZADD, ZCARD, ZCOUNT, ZINCRBY, ZRANGE, ZRANGEBYSCORE, ZRANK, ZREM, ZREMRANGEBYSCORE, ZREVRANGE, ZSCORE
'INFO' displays the version as 4.0.6
> INFO
# Server
redis_version:4.0.6
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:24cef40ebd18ad26
redis_mode:standalone
os:Linux 4.3.0 x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:6.3.0
process_id:672285
run_id:f8f55998b58ba17ed77d218a78cda00a51b7287c
tcp_port:6380
uptime_in_seconds:12882795
uptime_in_days:149
hz:10
lru_clock:6906059
# Clients
connected_clients:1
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0
# Memory
used_memory:34982504
used_memory_human:33.36M
used_memory_rss:42459136
used_memory_peak:35377616
used_memory_peak_human:33.74M
used_memory_lua:37888
mem_fragmentation_ratio:1.21
mem_allocator:jemalloc-4.0.3
# Persistence
loading:0
rdb_changes_since_last_save:4
rdb_bgsave_in_progress:0
rdb_last_save_time:1567186451
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:0
rdb_current_bgsave_time_sec:-1
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
# Stats
total_connections_received:944827
total_commands_processed:1841417
instantaneous_ops_per_sec:0
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:13253
evicted_keys:0
keyspace_hits:335572
keyspace_misses:1003913
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:7905
migrate_cached_sockets:0
# Replication
role:master
connected_slaves:0
master_repl_offset:0
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0
# CPU
used_cpu_sys:7408.67
used_cpu_user:3715.21
used_cpu_sys_children:1172.14
used_cpu_user_children:5570.36
# Cluster
cluster_enabled:0
# Keyspace
db0:keys=134447,expires=20,avg_ttl=125959035414186493

Related

How to limit size of appendonly.aof redis file

How to limit appendonly.aof file ?
My appendonly file grow to 92g.
It's for the stack gitlab, so for sessions,...
Here the info and auto_aof_rewrite:
127.0.0.1:6379> info
# Server
redis_version:6.0.9
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:5f0299f43563a32b
redis_mode:standalone
os:Linux 3.10.0-1160.49.1.el7.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:8.3.0
process_id:1
run_id:afaa34f1fda73418f2cd93f5ff43438f90bf6937
tcp_port:6379
uptime_in_seconds:771045
uptime_in_days:8
hz:10
configured_hz:10
lru_clock:15210632
executable:/redis-server
config_file:/opt/bitnami/redis/etc/redis.conf
io_threads_active:0
# Clients
connected_clients:95
client_recent_max_input_buffer:40960
client_recent_max_output_buffer:0
blocked_clients:25
tracking_clients:0
clients_in_timeout_table:25
# Memory
used_memory:12856608
used_memory_human:12.26M
used_memory_rss:30310400
used_memory_rss_human:28.91M
used_memory_peak:31560592
used_memory_peak_human:30.10M
used_memory_peak_perc:40.74%
used_memory_overhead:3609080
used_memory_startup:803816
used_memory_dataset:9247528
used_memory_dataset_perc:76.73%
allocator_allocated:13195272
allocator_active:15925248
allocator_resident:20357120
total_system_memory:33717776384
total_system_memory_human:31.40G
used_memory_lua:40960
used_memory_lua_human:40.00K
used_memory_scripts:2232
used_memory_scripts_human:2.18K
number_of_cached_scripts:5
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.21
allocator_frag_bytes:2729976
allocator_rss_ratio:1.28
allocator_rss_bytes:4431872
rss_overhead_ratio:1.49
rss_overhead_bytes:9953280
mem_fragmentation_ratio:2.34
mem_fragmentation_bytes:17332488
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:2050264
mem_aof_buffer:8
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0
# Persistence
loading:0
rdb_changes_since_last_save:41699953
rdb_bgsave_in_progress:0
rdb_last_save_time:1641829539
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:0
aof_enabled:1
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
aof_last_write_status:ok
aof_last_cow_size:0
module_fork_in_progress:0
module_fork_last_cow_size:0
aof_current_size:92994702556
aof_base_size:86673312156
aof_pending_rewrite:0
aof_buffer_length:0
aof_rewrite_buffer_length:0
aof_pending_bio_fsync:0
aof_delayed_fsync:211
# Stats
total_connections_received:193651
total_commands_processed:44893160
instantaneous_ops_per_sec:8
total_net_input_bytes:286054105262
total_net_output_bytes:3295943667
instantaneous_input_kbps:231.44
instantaneous_output_kbps:0.04
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:78681
expired_stale_perc:0.10
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:39134
evicted_keys:0
keyspace_hits:6449104
keyspace_misses:1389430
pubsub_channels:14
pubsub_patterns:0
latest_fork_usec:0
migrate_cached_sockets:0
slave_expires_tracked_keys:0
active_defrag_hits:0
active_defrag_misses:0
active_defrag_key_hits:0
active_defrag_key_misses:0
tracking_total_keys:0
tracking_total_items:0
tracking_total_prefixes:0
unexpected_error_replies:0
total_reads_processed:56482100
total_writes_processed:20157894
io_threaded_reads_processed:0
io_threaded_writes_processed:0
# Replication
role:master
connected_slaves:0
master_replid:76939de367fe638c034dbf7518438c6575509b8f
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:0
second_repl_offset:-1
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0
# CPU
used_cpu_sys:1677.920262
used_cpu_user:7851.412872
used_cpu_sys_children:0.006463
used_cpu_user_children:0.004674
# Modules
# Cluster
cluster_enabled:0
# Keyspace
db0:keys=7994,expires=7119,avg_ttl=9973952903
127.0.0.1:6379> config get auto-aof-rewrite-min-size
1) "auto-aof-rewrite-min-size"
2) "67108864"
127.0.0.1:6379> config get auto-aof-rewrite-percentage
1) "auto-aof-rewrite-percentage"
2) "100"
It's the default bitnami charts used. With only one master. I have 2 installs of this prod/pre-prod, on the 2 install 92Go/61go for this file.
So each time I need to change redis of node, or restart redis it's take 30min atm for start.
I have to fix it and keep a file with good start time, go a appendonly file < 5/10go max.
Any idea to solve this on long-term ?
For information: Manual call of BGREWRITEAOF do nothing.
Thanks.
Try AOF with RDB-preamble.
We got huge AOF file size decreases with it.
More details in this blog post.

How do I clear the SLOWLOG in redis?

How do I clear the redis SLOWLOG?
# Server
redis_version:3.0.6
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:f62ea9ec3712ae8d
redis_mode:standalone
os:Linux 2.6.32-696.18.7.el6.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.4.7
process_id:1489
run_id:05da042dddac2ef593eb8f2954ff7a93185797f7
tcp_port:6379
uptime_in_seconds:7939847
uptime_in_days:91
hz:10
lru_clock:6602452
config_file:/etc/redis.conf
Looks SLOWLOG RESET was what I wanted.
https://redis.io/commands/slowlog#resetting-the-slow-log

Apache Ignite nodes cannot communicate

I've configured Apache Ignite 1.8.0 programmatically and can start a server with a single node, but when another node joins, they cannot communicate and I receive many of the following two messages in the logs. These continue until the other node is stopped.
ERROR 12:52:39,187-0800 [*Initialization*] util.nio.GridDirectParser: Failed to read message [msg=null, buf=java.nio.DirectByteBuffer[pos=5 lim=420 cap=32768], reader=null, ses=GridSelectorNioSessionImpl [selectorIdx=0, queueSize=1, writeBuf=java.nio.DirectByteBuffer[pos=0 lim=32768 cap=32768], readBuf=java.nio.DirectByteBuffer[pos=5 lim=420 cap=32768], recovery=null, super=GridNioSessionImpl [locAddr=/10.97.184.106:5702, rmtAddr=/10.97.189.92:58788, createTime=1484945559174, closeTime=0, bytesSent=0, bytesRcvd=420, sndSchedTime=1484945559174, lastSndTime=1484945559174, lastRcvTime=1484945559185, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=o.a.i.i.util.nio.GridDirectParser#21e93eaf, directMode=true], GridConnectionBytesVerifyFilter], accepted=true]]]
class org.apache.ignite.IgniteException: Invalid message type: -84
at org.apache.ignite.internal.managers.communication.GridIoMessageFactory.create(GridIoMessageFactory.java:805)
at org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$5.create(TcpCommunicationSpi.java:1631)
at org.apache.ignite.internal.util.nio.GridDirectParser.decode(GridDirectParser.java:76)
at org.apache.ignite.internal.util.nio.GridNioCodecFilter.onMessageReceived(GridNioCodecFilter.java:104)
at org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:107)
at org.apache.ignite.internal.util.nio.GridConnectionBytesVerifyFilter.onMessageReceived(GridConnectionBytesVerifyFilter.java:113)
at org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:107)
at org.apache.ignite.internal.util.nio.GridNioServer$HeadFilter.onMessageReceived(GridNioServer.java:2332)
at org.apache.ignite.internal.util.nio.GridNioFilterChain.onMessageReceived(GridNioFilterChain.java:173)
at org.apache.ignite.internal.util.nio.GridNioServer$DirectNioClientWorker.processRead(GridNioServer.java:918)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:1583)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:1516)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1289)
at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
at java.lang.Thread.run(Thread.java:745)
WARN 12:52:39,188-0800 [*Initialization*] communication.tcp.TcpCommunicationSpi: Failed to process selector key (will close): GridSelectorNioSessionImpl [selectorIdx=0, queueSize=1, writeBuf=java.nio.DirectByteBuffer[pos=0 lim=32768 cap=32768], readBuf=java.nio.DirectByteBuffer[pos=5 lim=420 cap=32768], recovery=null, super=GridNioSessionImpl [locAddr=/10.97.184.106:5702, rmtAddr=/10.97.189.92:58788, createTime=1484945559174, closeTime=0, bytesSent=0, bytesRcvd=420, sndSchedTime=1484945559174, lastSndTime=1484945559174, lastRcvTime=1484945559185, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=o.a.i.i.util.nio.GridDirectParser#21e93eaf, directMode=true], GridConnectionBytesVerifyFilter], accepted=true]]
ERROR 12:52:39,189-0800 [*Initialization*] communication.tcp.TcpCommunicationSpi: Closing NIO session because of unhandled exception.
class org.apache.ignite.internal.util.nio.GridNioException: Invalid message type: -84
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:1595)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:1516)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1289)
at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
at java.lang.Thread.run(Thread.java:745)
Caused by: class org.apache.ignite.IgniteException: Invalid message type: -84
at org.apache.ignite.internal.managers.communication.GridIoMessageFactory.create(GridIoMessageFactory.java:805)
at org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$5.create(TcpCommunicationSpi.java:1631)
at org.apache.ignite.internal.util.nio.GridDirectParser.decode(GridDirectParser.java:76)
at org.apache.ignite.internal.util.nio.GridNioCodecFilter.onMessageReceived(GridNioCodecFilter.java:104)
at org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:107)
at org.apache.ignite.internal.util.nio.GridConnectionBytesVerifyFilter.onMessageReceived(GridConnectionBytesVerifyFilter.java:113)
at org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:107)
at org.apache.ignite.internal.util.nio.GridNioServer$HeadFilter.onMessageReceived(GridNioServer.java:2332)
at org.apache.ignite.internal.util.nio.GridNioFilterChain.onMessageReceived(GridNioFilterChain.java:173)
at org.apache.ignite.internal.util.nio.GridNioServer$DirectNioClientWorker.processRead(GridNioServer.java:918)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:1583)
... 4 more
Version information.
>>> +----------------------------------------------------------------------+
>>> Ignite ver. 1.8.0#20161205-sha1:9ca40dbeb7d559fcb299bdb6f5c90cdf8ce7e533
>>> +----------------------------------------------------------------------+
>>> OS name: Windows Server 2012 R2 6.3 amd64
>>> CPU(s): 2
>>> Heap: 3.6GB
>>> VM name: 13752#host
>>> Grid name: T-XXX
>>> Local node [ID=983EC5A0-2D9A-40C9-B4C3-3D59739BDDB9, order=1, clientMode=false]
>>> Local node addresses: [hostname.example.com/0:0:0:0:0:0:0:1, /10.97.184.106, /127.0.0.1]
>>> Local ports: TCP:5702 TCP:5703 TCP:5705
One of the similar issues I've found in my research is that it is recommended to disable the shared memory feature (setSharedMemoryPort -1) as a first step in removing a problem like this.
The server is running on Windows and the other server joining the cache is on OSX.
INFO 12:50:17,569-0800 [*Initialization*] ignite.internal.IgniteKernal%T-XXX: OS: Windows Server 2012 R2 6.3 amd64
How do I prevent these errors? Have I configured the cluster poorly or is there an incompatibility between the two machines I am using?
Very likely it's a misconfiguration issue. This can happen if discovery SPI on one node tries to connect to communication SPI on another node. See this post: http://apache-ignite-users.70518.x6.nabble.com/Invalid-message-type-84-error-td9869.html

Nvidia GPU passthrough fail with code 43

I'm currently trying to pass a nvidia GPU to Windows 10 guest using qemu 2.5 and libvirt 1.3.5.
I see "Error 43" on Nvidia GPU in Device Manager.
I had tried to hide the hypervisor by adding "kvm=off" and "hv_vendor_id=123456780ab", but it does not work for me. I searched in google and people solved the problem in this way.
And I also saw Virtual Machine : Yes in task manager.
Did I use in the wrong way? I can pass a AMD gpu to windows guest(AMD does not check the kvm virtualization).
Can I spoof nvidia in other way?
My system information:
#uname -a
Linux ns.mqcache.net 4.2.0-1.el7.elrepo.x86_64 #1 SMP Sun Aug 30 21:25:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
#/root/qemu25/qemu/x86_64-softmmu/qemu-system-x86_64 --version
QEMU emulator version 2.5.1.1, Copyright (c) 2003-2008 Fabrice Bellard
GPU:
02:00.0 VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 620 OEM] (rev a1)
02:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller (rev a1)
libvirt.xml
<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
<name>win10</name>
<os>
<type machine="q35">hvm</type>
<boot dev="hd"/>
<boot dev="cdrom"/>
</os>
<features>
<acpi/>
<apic/>
<hyperv>
<vendor_id state='on' value='1234567890ab'/>
</hyperv>
<kvm>
<hidden state='on'/>
</kvm>
</features>
<clock offset="localtime">
<timer name="rtc" tickpolicy="catchup"/>
<timer name="pit" tickpolicy="delay"/>
<timer name="hpet" present="no"/>
<timer name='hypervclock' present='yes'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<vcpu current="4">4</vcpu>
<cpu mode="host-passthrough">
<topology sockets="1" cores="4" threads="1"/>
</cpu>
<memory>8388608</memory>
<currentMemory>8388608</currentMemory>
<devices>
<emulator>/root/qemu25/qemu/x86_64-softmmu/qemu-system-x86_64</emulator>
<disk device="disk" type="file">
<driver name="qemu" type="qcow2"/>
<source file="/root/vm/win10/image.qcow2"/>
<target bus="virtio" dev="vda"/>
</disk>
<sound model="ac97"/>
<interface type="bridge">
<mac address="fa:16:3e:81:00:03"/>
<source bridge="eucabr"/>
<model type="virtio"/>
<driver name="qemu"/>
<alias name="net0"/>
</interface>
<hostdev mode="subsystem" type="pci" managed="yes">
<source>
<address domain="0x0000" bus="0x02" slot="0x00" function="0x1"/>
</source>
</hostdev>
</devices>
<qemu:commandline>
<qemu:arg value="-machine"/>
<qemu:arg value="smm=off"/>
<qemu:arg value="-device"/>
<qemu:arg value="ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1"/>
<qemu:arg value="-device"/>
<qemu:arg value="vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on"/>
<qemu:arg value="-vga"/>
<qemu:arg value="none"/>
</qemu:commandline>
</domain>
qemu command
/root/qemu25/qemu/x86_64-softmmu/qemu-system-x86_64 \
-name win10 \
-machine q35,accel=kvm,usb=off \
-cpu host,kvm=off,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_vendor_id=blah \
-m 2048 \
-realtime mlock=off \
-smp 2,sockets=1,cores=2,threads=1 \
-no-user-config \
-nodefaults \
-rtc base=localtime \
-no-shutdown \
-boot strict=on \
-device i82801b11-bridge,id=pci.1,bus=pcie.0,addr=0x1e \
-device pci-bridge,chassis_nr=2,id=pci.2,bus=pci.1,addr=0x1 \
-drive file=/root/vm/win10/snap.qcow2,if=none,id=drive-virtio-disk0,format=qcow2 \
-device virtio-blk-pci,scsi=off,bus=pci.2,addr=0x2,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \
-k en-us \
-device virtio-balloon-pci,id=balloon0,bus=pci.2,addr=0x4 \
-machine smm=off \
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
-device vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
-device vfio-pci,host=02:00.1,bus=root.1,addr=00.1 \
-msg timestamp=on \
-vga none
Look forward to your help!
You need to pass copy of unmodified videocard ROM to VM.
You need a secondary GPU that you can use as the primary for this
process. You cannot dump a clean copy of the BIOS without having the
passthrough GPU as a secondary card
Put the extra card in the primary slot and the intended passthrough card in another pci-e port and bootup.
Find your intended GPU again via lspci -v. In my case it had about the same address.
Now you can dump the ROM to a file:
# echo "0000:05:00.0" > /sys/bus/pci/drivers/vfio-pci/unbind
# cd /sys/bus/pci/devices/0000\:05\:00.0
# echo 1 > rom
# cat rom > /home/username/KVM/evga_gtx970.dump
# echo 0 > rom
# echo "0000:05:00.0" > /sys/bus/pci/drivers/vfio-pci/bind
In this case, 0000:05:00.0 is my PCI card address. You don't really need the bind step at the bottom since you'll be rebooting anyways.
You can check the integrity of the ROM dump with this handy utility at https://github.com/awilliam/rom-parser. My rom looks like:
# ./rom-parser evga_gtx970.dump
Valid ROM signature found #0h, PCIR offset 1a0h
PCIR: type 0 (x86 PC-AT), vendor: 10de, device: 13c2, class: 030000
PCIR: revision 0, vendor revision: 1
Valid ROM signature found #f400h, PCIR offset 1ch
PCIR: type 3 (EFI), vendor: 10de, device: 13c2, class: 030000
PCIR: revision 3, vendor revision: 0
EFI: Signature Valid, Subsystem: Boot, Machine: X64
Last image
You should have both an EFI and a non-EFI x86 ROM in the dump ( I think most cards have both)
Turn off the machine and put your GTX 1070 back in the primary slot.
After booting, edit your VM xml and in the section for your GPU (if you have already assigned the GPU to the VM) there should be a section. Add a file='path/to/dump/here' statement to it. My full section looks like:
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
</source>
<rom bar='on' file='/home/username/KVM/evga_gtx970.dump'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</hostdev>
This will have the VM start the card with that BIOS instead of whatever the kernel gives it.
source
Please note that you have to use OVMF (EFI) because SeaBIOS does not use card ROM properly.
If you're on OVMF or some other UEFI, make sure to triple-check that your card is UEFI-ready, especially on stuff that is older than ~2014.
I was under false impression that mine was (GTX 770), while, in fact, it wasn't (looked at the wrong version of ROM online) and wasted almost 2 days ripping my hair out. Look up UEFI support like so and look for ROM updates here.
I flashed my card, but I think you can put an UEFI-enabled ROM as romfile=. It appears that other manufacturers' ROMs could work too, if yours doesn't have an UEFI fix for you.

failed to start Grid Manager Adapter in apache ignite

This the program that I am running
package IgniteCache.IgniteCache1;
import org.apache.ignite.Ignite;
import org.apache.ignite.Ignition;
import org.junit.Test;
public class HelloWorldCompute
{
public static void main(String[] args) throws InterruptedException
{
{
try(Ignite ignite=Ignition.start())
{
ignite.compute().broadcast(()->System.out.println("Hello World"));
}
}
}
}
I am running the above code in my eclipse. after creating two nodes for apache ignite I am getting the following error in eclipse after running
[16:41:16] (wrn) Default Spring XML file not found (is IGNITE_HOME set?):
config/default-config.xml
Oct 24, 2016 4:41:16 PM java.util.logging.LogManager$RootLogger log
SEVERE: Failed to resolve default logging config file:
config/java.util.logging.properties
[16:41:16] __________ ________________
[16:41:16] / _/ ___/ |/ / _/_ __/ __/
[16:41:16] _/ // (7 7 // / / / / _/
[16:41:16] /___/\___/_/|_/___/ /_/ /___/
[16:41:16]
[16:41:16] ver. 1.5.0-b1#20151202-sha1:062d440c
[16:41:16] 2015 Copyright(C) Apache Software Foundation
[16:41:16]
[16:41:16] Ignite documentation: http://ignite.apache.org
[16:41:16]
[16:41:16] Quiet mode.
[16:41:16] ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[16:41:16]
[16:41:16] OS: Windows 8.1 6.3 amd64
[16:41:16] VM information: Java(TM) SE Runtime Environment 1.8.0_92-b14 Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.92-b14
[16:41:16] Initial heap size is 128MB (should be no less than 512MB, use - Xms512m -Xmx512m).
[16:41:17] Configured plugins:
[16:41:17] ^-- None
[16:41:17]
[16:41:17] Security status [authentication=off, tls/ssl=off]
Oct 24, 2016 4:41:18 PM org.apache.ignite.logger.java.JavaLogger error
SEVERE: Failed to start manager: GridManagerAdapter [enabled=true, name=o.a.i.i.managers.discovery.GridDiscoveryManager]
class org.apache.ignite.IgniteCheckedException: Failed to start SPI: TcpDiscoverySpi [addrRslvr=null, sockTimeout=5000, ackTimeout=5000, reconCnt=10, maxAckTimeout=600000, forceSrvMode=false, clientReconnectDisabled=false]
at org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:255)
at org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDis coveryManager.java:660)
at org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1500)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:915)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1618)
at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx
.java:1485)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:965)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:494)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:470)
at org.apache.ignite.Ignition.start(Ignition.java:303)
IgniteCache.IgniteCache1.HelloWorldCompute.main
(HelloWorldCompute.java:12)
Caused by: class org.apache.ignite.spi.IgniteSpiException: Local node and remote node have different version numbers (node will not join, Ignite
does not support rolling updates, so versions must be exactly the same) [locBuildVer=1.7.0, rmtBuildVer=1.5.0-b1, locNodeAddrs=[gopi/0:0:0:0:0:0:0:1, 2001:0:9d38:6ab8:1455:823d:82c1:2a3d/127.0.0.1, /172.17.7.70, /2001:0:9d38:6ab8:1455:823d:82c1:2a3d], rmtNodeAddrs=[gopi/0:0:0:0:0:0:0:1,
gopi/127.0.0.1, /172.17.7.70,
/2001:0:9d38:6ab8:1455:823d:82c1:2a3d], locNodeId=10922b26-14b0-4151-a503-
dca273e]
While in the command prompt I am getting the below error
C:\apache-ignite-fabric-1.7.0-bin\bin>ignite.bat
[17:57:10] __________ ________________
[17:57:10] / _/ ___/ |/ / _/_ __/ __/
[17:57:10] _/ // (7 7 // / / / / _/
[17:57:10] /___/\___/_/|_/___/ /_/ /___/
[17:57:10]
[17:57:10] ver. 1.7.0#20160801-sha1:383273e3
[17:57:10] 2016 Copyright(C) Apache Software Foundation
[17:57:10]
[17:57:10] Ignite documentation: http://ignite.apache.org
[17:57:10]
[17:57:10] Quiet mode.
[17:57:10] ^-- Logging to file 'C:\apache-ignite-fabric-1.7.0- bin\work\log\ig
ite-3f8aa05c.0.log'
[17:57:10] ^-- To see **FULL** console log here add -
DIGNITE_QUIET=false or "
v" to ignite.{sh|bat}
[17:57:10]
[17:57:10] OS: Windows 8.1 6.3 amd64
[17:57:10] VM information: Java(TM) SE Runtime Environment 1.8.0_92-b14
Oracle
orporation Java HotSpot(TM)
64-Bit Server VM 25.92-b14
[17:57:10] Configured plugins:
[17:57:10] ^-- None
[17:57:10]
[17:57:10] Security status [authentication=off, tls/ssl=off]
[17:57:13] To start Console Management & Monitoring run ignitevisorcmd.
{sh|bat}
[17:57:13]
[17:57:13] Ignite node started OK (id=3f8aa05c)
[17:57:13] Topology snapshot [ver=1, servers=1, clients=0, CPUs=4,
heap=1.0GB]
[17:57:42] Topology snapshot [ver=2, servers=2, clients=0, CPUs=4,
heap=2.0GB]
[18:03:16,345][SEVERE][tcp-disco-multicast-addr-rcvr-#23%null%]
[TcpDiscoveryMul
icastIpFinder] Failed to request nodes addresses.
java.net.SocketException: bad argument for IP_MULTICAST_IF: address not
bound t
any interface
at java.net.TwoStacksPlainDatagramSocketImpl.socketNativeSetOption(Nati
e Method)
at
java.net.TwoStacksPlainDatagramSocketImpl.socketSetOption(TwoStacksP
ainDatagramSocketImpl.java:146)
at java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainData
ramSocketImpl.java:309)
at java.net.MulticastSocket.setInterface(MulticastSocket.java:471)
at org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryM
lticastIpFinder.requestAddresses(TcpDiscoveryMulticastIpFinder
.java:547)
at org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryM
lticastIpFinder.access$700(TcpDiscoveryMulticastIpFinder.java:80)
at org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryM
lticastIpFinder$AddressReceiver.body
(TcpDiscoveryMulticastIpFinder.java:758)
at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.checkFailedError
(TcpDiscoverySpi.java:1627)
at org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology
(ServerImpl.java:879)
at org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart
(ServerImpl.java:328)
at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStart
(TcpDiscoverySpi.java:1815)
at org.apache.ignite.internal.managers.GridManagerAdapter
.startSpi(GridManagerAdapter.java:252)
... 10 more
Oct 24, 2016 4:41:18 PM org.apache.ignite.logger.java.JavaLogger error
SEVERE: Got exception while starting (will rollback startup routine).
class org.apache.ignite.IgniteCheckedException: Failed to start manager:
GridManagerAdapter [enabled=true,
name=org.apache.ignite.internal.managers.discovery
.GridDiscoveryManager]
at org.apache.ignite.internal.IgniteKernal.startManager
(IgniteKernal.java:1505)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:915)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.
start0(IgnitionEx.java:1618)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start
(IgnitionEx.java:1485)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:965)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:494)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:470)
at org.apache.ignite.Ignition.start(Ignition.java:303)
at IgniteCache.IgniteCache1.HelloWorldCompute
.main(HelloWorldCompute.java:12)
Caused by: class org.apache.ignite.IgniteCheckedException:
Failed to start SPI: TcpDiscoverySpi [addrRslvr=null, sockTimeout=5000,
ackTimeout=5000, reconCnt=10, maxAckTimeout=600000,
forceSrvMode=false, clientReconnectDisabled=false]
at org.apache.ignite.internal.managers.GridManagerAdapter
.startSpi(GridManagerAdapter.java:255)
at org.apache.ignite.internal.managers.discovery.
GridDiscoveryManager.start
(GridDiscoveryManager.java:660)
at org.apache.ignite.internal.IgniteKernal.startManager
(IgniteKernal.java:1500)
... 8 more
Caused by: class org.apache.ignite.spi.IgniteSpiException
: Local node and remote node have different version numbers (node will not
join, Ignite does not support rolling updates, so versions
must be exactly the same) [locBuildVer=1.7.0, rmtBuildVer=1.5.0-b1,
locNodeAddrs=[gopi/0:0:0:0:0:0:0:1,
2001:0:9d38:6ab8:1455:823d:82c1:2a3d/127.0.0.1,
/172.17.7.70, /2001:0:9d38:6ab8:1455:823d:82c1:2a3d], rmtNodeAddrs=
[gopi/0:0:0:0:0:0:0:1, gopi/127.0.0.1, /172.17.7.70,
/2001:0:9d38:6ab8:1455:823d:82c1:2a3d], locNodeId=10922b26-14b0-4151-a503-
75e83c241278, rmtNodeId=edfc9197-3d0b-4d19-bd8a-94a93dca273e]
I am using windows 8.1 and my firewall is off no antivirus..
1)Because ignite services are running with different configuration files in same server(it may be one reason)
#
service 1) [stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-cache.xml"
service 2) [stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-ignite.xml"
#
#terminal 1
[stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-cache.xml"
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[15:17:55] __________ ________________
[15:17:55] / _/ ___/ |/ / _/_ __/ __/
[15:17:55] _/ // (7 7 // / / / / _/
[15:17:55] /___/\___/_/|_/___/ /_/ /___/
[15:17:55]
[15:17:55] ver. 1.5.0-b1#20151202-sha1:062d440c
[15:17:55] 2015 Copyright(C) Apache Software Foundation
[15:17:55]
[15:17:55] Ignite documentation: http://ignite.apache.org
[15:17:55]
[15:17:55] Quiet mode.
[15:17:55] ^-- Logging to file '/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/work/log/ignite-5fa97ab6.0.log'
[15:17:55] ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[15:17:55]
[15:17:55] OS: Linux 3.10.0-327.el7.x86_64 amd64
[15:17:55] VM information: OpenJDK Runtime Environment 1.8.0_102-b14 Oracle Corporation OpenJDK 64-Bit Server VM 25.102-b14
[15:17:55] Configured plugins:
[15:17:55] ^-- None
[15:17:55]
[15:17:55] Security status [authentication=off, tls/ssl=off]
[15:17:57] Performance suggestions for grid (fix if possible)
[15:17:57] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[15:17:57] ^-- Decrease number of backups (set 'keyBackups' to 0)
[15:17:57]
[15:17:57] To start Console Management & Monitoring run ignitevisorcmd.{sh|bat}
[15:17:57]
[15:17:57] Ignite node started OK (id=5fa97ab6)
[15:17:57] Topology snapshot [ver=1, servers=1, clients=0, CPUs=4, heap=1.0GB]
[15:18:06] New version is available at ignite.apache.org: 1.7.0
[15:18:10] Topology snapshot [ver=2, servers=2, clients=0, CPUs=4, heap=2.0GB]
[15:18:11] Topology snapshot [ver=3, servers=1, clients=0, CPUs=4, heap=1.0GB]
########################terminal 2
#
[stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-ignite.xml"
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[15:18:08] __________ ________________
[15:18:08] / _/ ___/ |/ / _/_ __/ __/
[15:18:08] _/ // (7 7 // / / / / _/
[15:18:08] /___/\___/_/|_/___/ /_/ /___/
[15:18:08]
[15:18:08] ver. 1.5.0-b1#20151202-sha1:062d440c
[15:18:08] 2015 Copyright(C) Apache Software Foundation
[15:18:08]
[15:18:08] Ignite documentation: http://ignite.apache.org
[15:18:08]
[15:18:08] Quiet mode.
[15:18:08] ^-- Logging to file '/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/work/log/ignite-feae7ff1.0.log'
[15:18:08] ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[15:18:08]
[15:18:08] OS: Linux 3.10.0-327.el7.x86_64 amd64
[15:18:08] VM information: OpenJDK Runtime Environment 1.8.0_102-b14 Oracle Corporation OpenJDK 64-Bit Server VM 25.102-b14
[15:18:08] Configured plugins:
[15:18:08] ^-- None
[15:18:08]
[15:18:09] Security status [authentication=off, tls/ssl=off]
[15:18:10,964][SEVERE][main][IgniteKernal] Failed to start manager: GridManagerAdapter [enabled=true, name=o.a.i.i.managers.discovery.GridDiscoveryManager]
class org.apache.ignite.IgniteCheckedException: Remote node has peer class loading enabled flag different from local [locId8=feae7ff1, locPeerClassLoading=true, rmtId8=5fa97ab6, rmtPeerClassLoading=false, rmtAddrs=[ril-srv-sp4/0:0:0:0:0:0:0:1%lo, /127.0.0.1, /192.168.1.14]]
2)
Exception getting in second Service ,if we use common config files for two services it will work
service 1) [stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-cache.xml"
service 2) [stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-cache.xml"
###########################terminal 1
[stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-cache.xml"
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[15:25:41] __________ ________________
[15:25:41] / _/ ___/ |/ / _/_ __/ __/
[15:25:41] _/ // (7 7 // / / / / _/
[15:25:41] /___/\___/_/|_/___/ /_/ /___/
[15:25:41]
[15:25:41] ver. 1.5.0-b1#20151202-sha1:062d440c
[15:25:41] 2015 Copyright(C) Apache Software Foundation
[15:25:41]
[15:25:41] Ignite documentation: http://ignite.apache.org
[15:25:41]
[15:25:41] Quiet mode.
[15:25:41] ^-- Logging to file '/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/work/log/ignite-ed543f4a.0.log'
[15:25:41] ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[15:25:41]
[15:25:41] OS: Linux 3.10.0-327.el7.x86_64 amd64
[15:25:41] VM information: OpenJDK Runtime Environment 1.8.0_102-b14 Oracle Corporation OpenJDK 64-Bit Server VM 25.102-b14
[15:25:41] Configured plugins:
[15:25:41] ^-- None
[15:25:41]
[15:25:41] Security status [authentication=off, tls/ssl=off]
[15:25:43] Performance suggestions for grid (fix if possible)
[15:25:43] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[15:25:43] ^-- Decrease number of backups (set 'keyBackups' to 0)
[15:25:43]
[15:25:43] To start Console Management & Monitoring run ignitevisorcmd.{sh|bat}
[15:25:43]
[15:25:43] Ignite node started OK (id=ed543f4a)
[15:25:43] Topology snapshot [ver=1, servers=1, clients=0, CPUs=4, heap=1.0GB]
[15:25:52] New version is available at ignite.apache.org: 1.7.0
[15:25:58] Topology snapshot [ver=2, servers=2, clients=0, CPUs=4, heap=2.0GB]
###########################termainal 2
[stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-cache.xml"
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[15:25:56] __________ ________________
[15:25:56] / _/ ___/ |/ / _/_ __/ __/
[15:25:56] _/ // (7 7 // / / / / _/
[15:25:56] /___/\___/_/|_/___/ /_/ /___/
[15:25:56]
[15:25:56] ver. 1.5.0-b1#20151202-sha1:062d440c
[15:25:56] 2015 Copyright(C) Apache Software Foundation
[15:25:56]
[15:25:56] Ignite documentation: http://ignite.apache.org
[15:25:56]
[15:25:56] Quiet mode.
[15:25:56] ^-- Logging to file '/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/work/log/ignite-169dab96.0.log'
[15:25:56] ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[15:25:56]
[15:25:56] OS: Linux 3.10.0-327.el7.x86_64 amd64
[15:25:56] VM information: OpenJDK Runtime Environment 1.8.0_102-b14 Oracle Corporation OpenJDK 64-Bit Server VM 25.102-b14
[15:25:56] Configured plugins:
[15:25:56] ^-- None
[15:25:56]
[15:25:56] Security status [authentication=off, tls/ssl=off]
[15:25:59] Performance suggestions for grid (fix if possible)
[15:25:59] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[15:25:59] ^-- Decrease number of backups (set 'keyBackups' to 0)
[15:25:59]
[15:25:59] To start Console Management & Monitoring run ignitevisorcmd.{sh|bat}
[15:25:59]
[15:25:59] Ignite node started OK (id=169dab96)
[15:25:59] Topology snapshot [ver=2, servers=2, clients=0, CPUs=4, heap=2.0GB]
[15:26:06] New version is available at ignite.apache.org: 1.7.0
[15:27:13] Topology snapshot [ver=3, servers=1, clients=0, CPUs=4, heap=1.0GB]