DNS Lookups during requests?

2023-03-22 Thread Tim Funk
I ran into an interesting situation today with respect to latency due to failed DNS lookups. THE SETUP Using RHEL8, openjdk 11, solr 9.1.1. The solr instance was standalone in a mostly out of the box config. (No SSL, only http) I had 3 entries in /etc/resolv.conf and the first one in the list was

solr backups failing

2023-03-22 Thread r ohara
Hi all, We are using solrcloud 8.11 with 10 shards. We've been getting errors trying to back up our index using the collections API. Here's the error we see in some of the nodes when we run the REQUESTSTATUS api. Failed to backup core=collection_02_replica_t21 because java.io.IOException: Input/ou

Multiple index combined boost using boost query

2023-03-22 Thread Gajjar, Jigar
Hi All, I want to apply multiple Index combined boost. if(query({!terms f=au v='living' cache=false}),10.0,1) AND if(query({!terms f=ti v='living' cache=false}),10.0,1) My requirement is, if my term ‘living’ matching both field au and ti both in same document then only add a boost to record.

Terms Query Parser: escaping separator character in terms values

2023-03-22 Thread Tomasz Elendt
Hey, I tried to find how to escape the separator character in term values used in Terms Query Parser but I could find it. I check the documentation but it's not there: https://solr.apache.org/guide/solr/latest/query-guide/other-parsers.html#terms-query-parser Next, I tried to escape it with "\",

Re: DNS Lookups during requests?

2023-03-22 Thread Tim Casey
There are some settings which are common to apply to the JVM. You might try those first. If you do a search for JVM java DNS settings it will come up. On Wed, Mar 22, 2023 at 7:01 AM Tim Funk wrote: > I ran into an interesting situation today with respect to latency due to > failed DNS lookups.

Re: DNS Lookups during requests?

2023-03-22 Thread Tim Funk
I did try adding to SOLR_OPTS to be "-Djava.net.preferIPv4Stack=true -Dnetworkaddress.cache.ttl=3600" and they didn't seem to have any effect during the triage. -Tim On Wed, Mar 22, 2023 at 12:44 PM Tim Casey wrote: > There are some settings which are common to apply to the JVM. You might > tr

Re: DNS Lookups during requests?

2023-03-22 Thread Tim Funk
I did try adding to SOLR_OPTS this: "-Djava.net.preferIPv4Stack=true -Dnetworkaddress.cache.ttl=3600" and they didn't seem to have any effect during the triage. -Tim On Wed, Mar 22, 2023 at 12:44 PM Tim Casey wrote: > There are some settings which are common to apply to the JVM. You might > tr

Re: DNS Lookups during requests?

2023-03-22 Thread Mikhail Khludnev
Hello, You can check jstack or Thread Dump in Solr Admin to localize the clog. On Wed, Mar 22, 2023 at 5:01 PM Tim Funk wrote: > I ran into an interesting situation today with respect to latency due to > failed DNS lookups. > > THE SETUP > Using RHEL8, openjdk 11, solr 9.1.1. The solr instance w

Re: DNS Lookups during requests?

2023-03-22 Thread Tim Casey
If you have a DNS out, you will get DNS timeout. Removing the specific entry might help, at least until it is resolved. On Wed, Mar 22, 2023 at 10:17 AM Tim Funk wrote: > I did try adding to SOLR_OPTS to be "-Djava.net.preferIPv4Stack=true > -Dnetworkaddress.cache.ttl=3600" and they didn't see

Re: DNS Lookups during requests?

2023-03-22 Thread dmitri maziuk
On 2023-03-22 12:16 PM, Tim Funk wrote: I did try adding to SOLR_OPTS this: "-Djava.net.preferIPv4Stack=true -Dnetworkaddress.cache.ttl=3600" and they didn't seem to have any effect during the triage. If you're querying http://10.0.0.200:8983/solr/mycore/select?q=*:*&fq=locale_s:en-us&rows=1,

Re: Terms Query Parser: escaping separator character in terms values

2023-03-22 Thread Mikhail Khludnev
I think it was made so for sake of simplicity. That's why it has separator param. Query generator should just choose the right one absent across terms. On Wed, Mar 22, 2023 at 7:37 PM Tomasz Elendt wrote: > Hey, I tried to find how to escape the separator character in term values > used in Terms

Re: Multiple index combined boost using boost query

2023-03-22 Thread Mikhail Khludnev
Perhaps if(query($qq),10.0,1)&qq=+{!terms f=au v='living' cache=false} +{!terms f=ti v='living' cache=false} Note, the syntax is really fragile, any subtle change may break it. On Wed, Mar 22, 2023 at 6:04 PM Gajjar, Jigar wrote: > Hi All, > > > I want to apply multiple Index combined boost. >

Authentication for Solr delegating to Active Directory

2023-03-22 Thread Shawn Heisey
I finally have a good grasp of exactly how rule based authorization in Solr works. It's exceptionally flexible once you figure it out. I've been trying to figure out whether there is any way to use Active Directory for authentication in Solr, and if so, how in the world I would manage mapping

Re: Authentication for Solr delegating to Active Directory

2023-03-22 Thread dmitri maziuk
On 2023-03-22 7:24 PM, Shawn Heisey wrote: I finally have a good grasp of exactly how rule based authorization in Solr works.  It's exceptionally flexible once you figure it out. I've been trying to figure out whether there is any way to use Active Directory for authentication in Solr, and if

Live shard with no leader

2023-03-22 Thread Walter Underwood
I have a shard with replication factor 2. One shard is state:active, the other is state:down. The active shard is not a leader. Using the FORCELEADER command to try and get it elected leader doesn’t fix it. We tried adding another replica, but it is also in state:down, maybe because there isn’t

Re: Authentication for Solr delegating to Active Directory

2023-03-22 Thread Shawn Heisey
On 3/22/2023 6:56 PM, dmitri maziuk wrote: Looks like someone did it: https://stackoverflow.com/questions/17730950/jetty-jaas-and-active-directory-authentication-only On-prem AD is really just LDAP+SSL but I know next to nothing about jetty so I would be tempted to put it behind an apache or n

Solr Shard not coming up

2023-03-22 Thread HariBabu kuruva
Hi All, I have come across an issue where a few shards are not coming up after solr restart. Currently I don't have an error message stored. But I remember it was due to some index file corruption. Please share your suggestions to avoid such issues. -- Thanks and Regards, Hari Mobile:9790756