OpenBSD Handbook

    Theme
    • Part I. Install & Configure
      • Introduction to OpenBSD
      • Installing OpenBSD
      • The X Window System
      • Networking on OpenBSD
      • System Configuration
      • OpenBSD Basics
      • Managing Software: Packages and Ports
    • Part II. Daily Operations
      • OpenBSD Desktop Environments
      • Multimedia
      • Printing
      • Linux Compatibility
      • Windows Compatibility
      • Games
    • Part III. System Administration
      • Virtualization
      • Storage and File Systems
      • Updating and Upgrading
      • Localization
      • The OpenBSD Boot Process
      • Security
    • Part IV. Networking & Daemons
      • Services
        • Database
          • MariaDB
          • PostgreSQL
          • Redis
          • memcached
        • Directory
          • YP (NIS)
          • LDAP
        • File
          • NFS
          • Samba
        • FTP Services
          • ftpd
          • ProFTPD
          • vsftpd
          • Pure-FTPd
          • TFTP
        • Mail
          • OpenSMTPD Mail Server
          • Dovecot IMAP and POP3 Server
          • Postfix
          • Exim
          • Rspamd
        • Name
          • Unbound DNS Resolver
          • NSD Authoritative DNS Server
          • BIND DNS Server
        • Networking
          • OpenBGPD
          • rad
          • DHCP on OpenBSD
          • slaacd
        • Web
          • Apache HTTP Server
          • nginx Web Server
          • OpenBSD httpd Web Server
          • relayd Reverse Proxy
        • Logging
          • syslogd
        • Monitoring
          • SNMP
        • Remote Access
          • Audit OpenSSH
          • OpenSSH Server
        • File Synchronization
          • rsync
        • Messaging
          • RabbitMQ Message Broker
        • Time
          • NTP Time Synchronization
      • PF
        • pfctl cheat sheet
        • PF Anchors
        • PF Filter Rules
        • PF Forwarding
        • PF Lists and Macros
        • PF Load Balancing
        • PF Logging
        • PF NAT
        • PF Options
        • PF Policies
        • PF Shortcuts
        • PF Tables
      • Advanced Networking
        • High Availability and State Replication
        • Multi-WAN and Policy-Based Routing
        • VPN and Cryptographic Tunneling
        • Classic and Lightweight Tunnels
        • IPv6 at Scale
        • QoS and Traffic Shaping
        • MPLS and Label Distribution
        • Network Services at Scale
        • Virtualization and Host Networking
        • Large-Scale L2 and L3 Design
        • Telemetry, Logging, and Flow Export
        • Hardening and Operational Safety
        • Reference Architectures
        • Troubleshooting Playbooks
      • Serial Communication
    • Part V. Miscellaneous
      • Virtualization Cheat Sheet
      • OpenBSD Cheatsheet
      • How-to Guides
        • Complete the First 30 Minutes After Installation
        • Check Hardware Compatibility Before Installing
        • Bootstrap Wi-Fi Firmware Without Ethernet
        • Set Up OpenBSD as a Laptop or Workstation
        • Configure Laptop Power Management
        • Run OpenBSD as a Virtual Machine Guest
        • Install OpenBSD on a VPS or Cloud Server
        • Install OpenBSD with Full-Disk Encryption
        • Troubleshoot Web Browsers on OpenBSD
        • Create an Administrator Account with doas and SSH Keys
        • Establish a Conservative Security Baseline
        • Manage OpenBSD with Ansible
        • Recover Access and Reset the Root Password
        • Collect OpenBSD Diagnostic Evidence
        • Configure Secure Remote Access with OpenSSH
        • Set Up WordPress on OpenBSD
        • Build Third-Party Software from Ports
        • Use FIDO Security Keys with OpenSSH
        • Build OpenBSD from Source
        • Configure Wi-Fi Roaming and Wired Failover
        • Dual-Boot OpenBSD on a UEFI System
        • Troubleshoot PF, NAT, and Routing
        • Automate OpenBSD Installation with Autoinstall and PXE
        • Route Multiple VLANs with PF
        • Configure a Road-Warrior WireGuard VPN
        • Troubleshoot Package Installation and Update Failures
        • Route IPv6 Networks without NAT
        • Schedule Recurring Maintenance
        • Plan a Docker Workload Migration to OpenBSD
        • Build a Mail Server with OpenSMTPD, Dovecot, and Rspamd
        • Build a Simple Router and Firewall
        • Monitor an OpenBSD System
        • Back Up and Restore an OpenBSD System
        • Configure softraid RAID1
        • Recover an OpenBSD System That Does Not Boot
        • Install Z shell (zsh)
      • OpenBSD for Linux Users
      • OpenBSD for FreeBSD Users
      • OpenBSD for macOS Users
    • OpenBSD FAQ
    • OpenBSD Architectures
      • OpenBSD Package Search

        opensearch-3.7.0

        Package search / Categories / OpenBSD 8.0 release
        โ† Back to search
        OpenBSD branch
        OpenBSD 8.0 releaseCurrent snapshot

        OpenBSD 8.0 release ยท amd64

        distributed and RESTful search engine

        Project homepage: https://www.opensearch.org/

        Description

        OpenSearch is a community-driven, open source search and analytics suite derived from the Apache 2.0 licensed Elasticsearch 7.10.2

        Package information

        Ports path
        textproc/opensearch
        Package architecture
        amd64
        Maintainer
        Omar Polo <op@openbsd.org>, Pavel Korovin <pvk@openbsd.org>
        Categories
        textproc, devel, java
        Available flavors
        None listed
        Only for architectures
        i386, amd64, aarch64

        Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.

        Direct dependencies

        Runtime

        • java/javaPathHelper
        • java/jna
        • shells/bash
        • devel/jdk/21 jdk->=21v0,<22v0

        Build

        • devel/jdk/21 jdk->=21v0,<22v0
        OpenBSD README

        This README contains unresolved ports variables; replace them before using its commands.

        +-------------------------------------------------------------------------------
        | Running opensearch on OpenBSD
        +-------------------------------------------------------------------------------
        
        Initial Node/Cluster Configuration
        ==================================
        
        Configuration files are located in ${SYSCONFDIR}/opensearch
        
        The security plugin is enabled by default and needs to be configured
        before starting OpenSearch.
        For demo/testing purposes, basic security configuration can be created
        by running:
        
        	# doas -u _opensearch \
        		${TRUEPREFIX}/opensearch/plugins/opensearch-security/tools/install_demo_configuration.sh
        
        Upstream documentation:
        https://opensearch.org/docs/latest/security-plugin/configuration/index
        
        By default, OpenSearch binds to a localhost addresses. Since OpenBSD does
        not support IPv4 to IPv6 address mapping, either IPv4 or IPv6 can be
        used, but not both of them (see JDK/JRE package README for more details.)
        
        Thus by default OpenSearch will bind to 127.0.0.1 and will not be useful
        for anything except testing.
        
        After configuring network.host to non-default localhost address,
        OpenSearch will assume it's in "production" mode and will enforce
        the following bootstrap checks:
        - maximum number of open file descriptors must be >= 65535 (see below)
        - discovery.seed_hosts and cluster.initial_cluster_manager_nodes
          must be configured in ${SYSCONFDIR}/opensearch/opensearch.yml
        
        Upstream documentation:
        https://opensearch.org/docs/latest/opensearch/configuration/#configuration-file
        
        Resource Limits: File Descriptors
        =================================
        
        A sample login class has been provided in /etc/login.conf.d/elasticsearch.
        To raise the default system limit, adjust kern.maxfiles:
        
        	# sysctl kern.maxfiles=65535
        	# echo kern.maxfiles=65535 >> /etc/sysctl.conf
        
        For a busy OpenSearch node with lots of indexes, maxfiles/openfiles limits
        should be increased even more, e.g. 131070.
        
        You can query the number of open file descriptors along with the maximum
        allowed by running
        
        	$ ftp -S dont -o - 'https://admin:admin@localhost:9200/_nodes/stats/process?pretty'
        
        and searching for "open_file_descriptors" and "max_file_descriptors"
        values.
        
        Resource Limits: Maximum Number of File Locks
        =============================================
        
        If you are getting "java.io.IOException: No locks available" errors,
        increase kern.maxlocksperuid over the default of 1024:
        
        	# sysctl kern.maxlocksperuid=2048
        	# echo kern.maxlocksperuid=2048 >> /etc/sysctl.conf
        
        OpenSearch Plugins Management
        =============================
        
        Installing plugins may involve running Java code which can download and
        execute arbitrary code from the Internet.  To avoid running these tasks
        as root, use doas(1):
        
        	# doas -u _opensearch \
        	    ${TRUEPREFIX}/opensearch/bin/opensearch-plugin install ...
        
        Migrate from ElasticSearch
        ==========================
        
        There are different approaches to migrate from ElasticSearch to
        OpenSearch.  Upstream documents three migration strategies:
        https://opensearch.org/docs/latest/upgrade-to/index
        
        Regardless of the approach choosen, to safeguard against data loss, is
        recommend to take a snapshot of all indices prior to any migration.
        

        Package guides

        • Installing and updating packages

        Package details as JSON

        Report a bug